Commit 3dd50a5e authored by Bart Van Assche's avatar Bart Van Assche Committed by Greg Kroah-Hartman

sbp-target: Fix second argument of percpu_ida_alloc()

commit 8456066a upstream.

Pass a task state as second argument to percpu_ida_alloc().

Fixes: commit 5a3ee221 ("sbp-target: Conversion to percpu_ida tag pre-allocation")
Signed-off-by: default avatarBart Van Assche <bart.vanassche@sandisk.com>
Cc: Chris Boot <bootc@bootc.net>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 0e79a6b4
......@@ -928,7 +928,7 @@ static struct sbp_target_request *sbp_mgt_get_req(struct sbp_session *sess,
struct sbp_target_request *req;
int tag;
tag = percpu_ida_alloc(&se_sess->sess_tag_pool, GFP_ATOMIC);
tag = percpu_ida_alloc(&se_sess->sess_tag_pool, TASK_RUNNING);
if (tag < 0)
return ERR_PTR(-ENOMEM);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment