diff options
Diffstat (limited to 'fs/aio.c')
-rw-r--r-- | fs/aio.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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) |