diff options
author | Benjamin LaHaise <bcrl@kvack.org> | 2013-02-20 13:16:58 +1100 |
---|---|---|
committer | Stephen Rothwell <sfr@canb.auug.org.au> | 2013-03-01 15:17:42 +1100 |
commit | cc321d523dc4a7e0e1a4adaa70342f1ca9af2964 (patch) | |
tree | da81ac777992a3e6dba7ff8c0d2e6152fb30b595 | |
parent | 06b277156d225c502aa6d154657a32aa27f15c8e (diff) |
aio: v3: fix kioctx not being freed after cancellation at exit time
v3 corrects a typo in v2 of this patch. The wrong version of the patch was
copied over and misspelled ctx in the first hunk. A known good tree with
this patch is at git://git.kvack.org/~bcrl/linux-next-20130213.git-v3 .
Signed-off-by: Benjamin LaHaise <bcrl@kvack.org>
Cc: Kent Overstreet <koverstreet@google.com>
Cc: Josh Boyer <jwboyer@redhat.com>
Cc: Zach Brown <zab@redhat.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
-rw-r--r-- | fs/aio.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -337,7 +337,7 @@ static void free_ioctx(struct kioctx *ctx) while (atomic_read(&ctx->reqs_available) < ctx->nr) { wait_event(ctx->wait, (head != ctx->shadow_tail) || - (atomic_read(&ctx->reqs_available) >= ctr->nr)); + (atomic_read(&ctx->reqs_available) >= ctx->nr)); avail = (head <= ctx->shadow_tail ? ctx->shadow_tail : ctx->nr) - head; |