diff options
Diffstat (limited to 'fs/aio.c')
| -rw-r--r-- | fs/aio.c | 4 |
1 files changed, 2 insertions, 2 deletions
| @@ -661,10 +661,10 @@ static struct kioctx *ioctx_alloc(unsigned nr_events) | |||
| 661 | 661 | ||
| 662 | INIT_LIST_HEAD(&ctx->active_reqs); | 662 | INIT_LIST_HEAD(&ctx->active_reqs); |
| 663 | 663 | ||
| 664 | if (percpu_ref_init(&ctx->users, free_ioctx_users)) | 664 | if (percpu_ref_init(&ctx->users, free_ioctx_users, 0, GFP_KERNEL)) |
| 665 | goto err; | 665 | goto err; |
| 666 | 666 | ||
| 667 | if (percpu_ref_init(&ctx->reqs, free_ioctx_reqs)) | 667 | if (percpu_ref_init(&ctx->reqs, free_ioctx_reqs, 0, GFP_KERNEL)) |
| 668 | goto err; | 668 | goto err; |
| 669 | 669 | ||
| 670 | ctx->cpu = alloc_percpu(struct kioctx_cpu); | 670 | ctx->cpu = alloc_percpu(struct kioctx_cpu); |
