mirror of
https://github.com/torvalds/linux.git
synced 2024-11-22 12:11:40 +00:00
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>
This commit is contained in:
parent
d5528773e6
commit
4b30f07e74
2
fs/aio.c
2
fs/aio.c
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user