Commit 4b30f07e authored by Tang Chen's avatar Tang Chen Committed by Linus Torvalds

aio: fix wrong comment in aio_complete()

ctx->ctx_lock should be ctx->completion_lock.
Signed-off-by: default avatarTang Chen <tangchen@cn.fujitsu.com>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent d5528773
...@@ -625,7 +625,7 @@ void aio_complete(struct kiocb *iocb, long res, long res2) ...@@ -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 * 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. * pointer since we might be called from irq context.
*/ */
spin_lock_irqsave(&ctx->completion_lock, flags); spin_lock_irqsave(&ctx->completion_lock, flags);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment