aboutsummaryrefslogtreecommitdiffstats
path: root/fs/aio.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/aio.c')
-rw-r--r--fs/aio.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/fs/aio.c b/fs/aio.c
index 6efb7f6cb22e..fd1c0baf15bb 100644
--- a/fs/aio.c
+++ b/fs/aio.c
@@ -652,7 +652,8 @@ static struct kioctx *ioctx_alloc(unsigned nr_events)
652 aio_nr += ctx->max_reqs; 652 aio_nr += ctx->max_reqs;
653 spin_unlock(&aio_nr_lock); 653 spin_unlock(&aio_nr_lock);
654 654
655 percpu_ref_get(&ctx->users); /* io_setup() will drop this ref */ 655 percpu_ref_get(&ctx->users); /* io_setup() will drop this ref */
656 percpu_ref_get(&ctx->reqs); /* free_ioctx_users() will drop this */
656 657
657 err = ioctx_add_table(ctx, mm); 658 err = ioctx_add_table(ctx, mm);
658 if (err) 659 if (err)