Skip to content

Commit

Permalink
aio: fix wrong comment in aio_complete()
Browse files Browse the repository at this point in the history
ctx->ctx_lock should be ctx->completion_lock.

Signed-off-by: Tang Chen <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
  • Loading branch information
tang-chen authored and torvalds committed Jul 3, 2013
1 parent d552877 commit 4b30f07
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fs/aio.c
Original file line number Diff line number Diff line change
Expand Up @@ -625,7 +625,7 @@ void aio_complete(struct kiocb *iocb, long res, long res2)

/*
* Add a completion event to the ring buffer. Must be done holding
* ctx->ctx_lock to prevent other code from messing with the tail
* ctx->completion_lock to prevent other code from messing with the tail
* pointer since we might be called from irq context.
*/
spin_lock_irqsave(&ctx->completion_lock, flags);
Expand Down

0 comments on commit 4b30f07

Please sign in to comment.