aboutsummaryrefslogtreecommitdiffstats
path: root/fs/aio.c
diff options
context:
space:
mode:
authorTang Chen <tangchen@cn.fujitsu.com>2013-07-03 18:09:16 -0400
committerLinus Torvalds <torvalds@linux-foundation.org>2013-07-03 19:08:06 -0400
commit4b30f07e74d2df673925019ad58bc59a719df3bb (patch)
treeedc238c9107f3b7d8fc97cca077683bd3b7f99f0 /fs/aio.c
parentd5528773e68e35512f69dd574e25d8c81e7d3105 (diff)
aio: fix wrong comment in aio_complete()
ctx->ctx_lock should be ctx->completion_lock. Signed-off-by: Tang Chen <tangchen@cn.fujitsu.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'fs/aio.c')
-rw-r--r--fs/aio.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/aio.c b/fs/aio.c
index a8ecc8313fb0..9b5ca1137419 100644
--- a/fs/aio.c
+++ b/fs/aio.c
@@ -625,7 +625,7 @@ void aio_complete(struct kiocb *iocb, long res, long res2)
625 625
626 /* 626 /*
627 * Add a completion event to the ring buffer. Must be done holding 627 * Add a completion event to the ring buffer. Must be done holding
628 * ctx->ctx_lock to prevent other code from messing with the tail 628 * ctx->completion_lock to prevent other code from messing with the tail
629 * pointer since we might be called from irq context. 629 * pointer since we might be called from irq context.
630 */ 630 */
631 spin_lock_irqsave(&ctx->completion_lock, flags); 631 spin_lock_irqsave(&ctx->completion_lock, flags);