diff options
author | Tejun Heo <tj@kernel.org> | 2014-09-07 20:51:30 -0400 |
---|---|---|
committer | Tejun Heo <tj@kernel.org> | 2014-09-07 20:51:30 -0400 |
commit | a34375ef9e65340a138fc0be287de5c940d260fc (patch) | |
tree | 2e21b63d7c9240620a59090aa97e1d7c6df95b8c /fs/aio.c | |
parent | 20ae00792c6f1f18fc4fc5965445a145df92827e (diff) |
percpu-refcount: add @gfp to percpu_ref_init()
Percpu allocator now supports allocation mask. Add @gfp to
percpu_ref_init() so that !GFP_KERNEL allocation masks can be used
with percpu_refs too.
This patch doesn't make any functional difference.
v2: blk-mq conversion was missing. Updated.
Signed-off-by: Tejun Heo <tj@kernel.org>
Cc: Kent Overstreet <koverstreet@google.com>
Cc: Benjamin LaHaise <bcrl@kvack.org>
Cc: Li Zefan <lizefan@huawei.com>
Cc: Nicholas A. Bellinger <nab@linux-iscsi.org>
Cc: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'fs/aio.c')
-rw-r--r-- | fs/aio.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -666,10 +666,10 @@ static struct kioctx *ioctx_alloc(unsigned nr_events) | |||
666 | 666 | ||
667 | INIT_LIST_HEAD(&ctx->active_reqs); | 667 | INIT_LIST_HEAD(&ctx->active_reqs); |
668 | 668 | ||
669 | if (percpu_ref_init(&ctx->users, free_ioctx_users)) | 669 | if (percpu_ref_init(&ctx->users, free_ioctx_users, GFP_KERNEL)) |
670 | goto err; | 670 | goto err; |
671 | 671 | ||
672 | if (percpu_ref_init(&ctx->reqs, free_ioctx_reqs)) | 672 | if (percpu_ref_init(&ctx->reqs, free_ioctx_reqs, GFP_KERNEL)) |
673 | goto err; | 673 | goto err; |
674 | 674 | ||
675 | ctx->cpu = alloc_percpu(struct kioctx_cpu); | 675 | ctx->cpu = alloc_percpu(struct kioctx_cpu); |