提交 8456066a 编写于 作者: B Bart Van Assche

sbp-target: Fix second argument of percpu_ida_alloc()

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: NBart Van Assche <bart.vanassche@sandisk.com>
Cc: Chris Boot <bootc@bootc.net>
上级 ecaf597b
...@@ -928,7 +928,7 @@ static struct sbp_target_request *sbp_mgt_get_req(struct sbp_session *sess, ...@@ -928,7 +928,7 @@ static struct sbp_target_request *sbp_mgt_get_req(struct sbp_session *sess,
struct sbp_target_request *req; struct sbp_target_request *req;
int tag; 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) if (tag < 0)
return ERR_PTR(-ENOMEM); return ERR_PTR(-ENOMEM);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册