]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
aio: v3: fix kioctx not being freed after cancellation at exit time
authorBenjamin LaHaise <bcrl@kvack.org>
Sun, 10 Mar 2013 10:55:49 +0000 (21:55 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Tue, 12 Mar 2013 03:57:47 +0000 (14:57 +1100)
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>
fs/aio.c

index 188724ed31647e59df556bd9a19ffca7ad7d0995..eb99ac191454c2f8055ad49374fdb1e138b81274 100644 (file)
--- a/fs/aio.c
+++ b/fs/aio.c
@@ -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;