From ed9cd7b1c8cba60db759ab8b2372d0a767f1397c Mon Sep 17 00:00:00 2001 From: Bart Van Assche Date: Thu, 28 Mar 2019 16:46:21 +0000 Subject: [PATCH] scst: Fix percpu_ref_init() GFP mask Fixes: 53fdc293e251 ("scst: Use a per-cpu counter for sessions") (trunk r8026). git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8088 d57e44dd-8a1f-0410-8b47-8ef2f437770f --- scst/src/scst_lib.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scst/src/scst_lib.c b/scst/src/scst_lib.c index f8287e598..b023da399 100644 --- a/scst/src/scst_lib.c +++ b/scst/src/scst_lib.c @@ -7055,7 +7055,7 @@ struct scst_session *scst_alloc_session(struct scst_tgt *tgt, gfp_t gfp_mask, sess->init_phase = SCST_SESS_IPH_INITING; sess->shut_phase = SCST_SESS_SPH_READY; - ret = percpu_ref_init(&sess->refcnt, scst_sess_release, 0, GFP_KERNEL); + ret = percpu_ref_init(&sess->refcnt, scst_sess_release, 0, gfp_mask); if (ret < 0) goto out_free; mutex_init(&sess->tgt_dev_list_mutex);