diff options
author | Sage Weil <sage@inktank.com> | 2013-08-15 14:11:45 -0400 |
---|---|---|
committer | Sage Weil <sage@inktank.com> | 2013-08-15 14:11:45 -0400 |
commit | ee3e542fec6e69bc9fb668698889a37d93950ddf (patch) | |
tree | e74ee766a4764769ef1d3d45d266b4dea64101d3 /fs/aio.c | |
parent | fe2a801b50c0bb8039d627e5ae1fec249d10ff39 (diff) | |
parent | f1d6e17f540af37bb1891480143669ba7636c4cf (diff) |
Merge remote-tracking branch 'linus/master' into testing
Diffstat (limited to 'fs/aio.c')
-rw-r--r-- | fs/aio.c | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -39,6 +39,8 @@ | |||
39 | #include <asm/kmap_types.h> | 39 | #include <asm/kmap_types.h> |
40 | #include <asm/uaccess.h> | 40 | #include <asm/uaccess.h> |
41 | 41 | ||
42 | #include "internal.h" | ||
43 | |||
42 | #define AIO_RING_MAGIC 0xa10a10a1 | 44 | #define AIO_RING_MAGIC 0xa10a10a1 |
43 | #define AIO_RING_COMPAT_FEATURES 1 | 45 | #define AIO_RING_COMPAT_FEATURES 1 |
44 | #define AIO_RING_INCOMPAT_FEATURES 0 | 46 | #define AIO_RING_INCOMPAT_FEATURES 0 |
@@ -623,7 +625,7 @@ void aio_complete(struct kiocb *iocb, long res, long res2) | |||
623 | 625 | ||
624 | /* | 626 | /* |
625 | * 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 |
626 | * 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 |
627 | * pointer since we might be called from irq context. | 629 | * pointer since we might be called from irq context. |
628 | */ | 630 | */ |
629 | spin_lock_irqsave(&ctx->completion_lock, flags); | 631 | spin_lock_irqsave(&ctx->completion_lock, flags); |