VisionFive2 Linux kernel

StarFive Tech Linux Kernel for VisionFive (JH7110) boards (mirror)

More than 9999 Commits   33 Branches   55 Tags
author: Tejun Heo <tj@kernel.org> 2014-09-08 09:51:30 +0900 committer: Tejun Heo <tj@kernel.org> 2014-09-08 09:51:30 +0900 commit: a34375ef9e65340a138fc0be287de5c940d260fc parent: 20ae00792c6f1f18fc4fc5965445a145df92827e
Commit Summary:
percpu-refcount: add @gfp to percpu_ref_init()
Diffstat:
1 file changed, 2 insertions, 2 deletions
diff --git a/fs/aio.c b/fs/aio.c
index bd7ec2cc2674..93fbcc0f5696 100644
--- a/fs/aio.c
+++ b/fs/aio.c
@@ -666,10 +666,10 @@ static struct kioctx *ioctx_alloc(unsigned nr_events)
 
 	INIT_LIST_HEAD(&ctx->active_reqs);
 
-	if (percpu_ref_init(&ctx->users, free_ioctx_users))
+	if (percpu_ref_init(&ctx->users, free_ioctx_users, GFP_KERNEL))
 		goto err;
 
-	if (percpu_ref_init(&ctx->reqs, free_ioctx_reqs))
+	if (percpu_ref_init(&ctx->reqs, free_ioctx_reqs, GFP_KERNEL))
 		goto err;
 
 	ctx->cpu = alloc_percpu(struct kioctx_cpu);