summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBenjamin LaHaise <bcrl@kvack.org>2013-03-02 15:25:58 +1100
committerStephen Rothwell <sfr@canb.auug.org.au>2013-03-07 14:27:35 +1100
commited8add40b71d820c28a61cbcd4f6d7170fe05f92 (patch)
tree6836ce2eee1184dcc57663be8996894104438fa5
parent59176b21e8ea8e969c707b04456c5857ddec4dcc (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.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/aio.c b/fs/aio.c
index 188724ed3164..eb99ac191454 100644
--- 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;