Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 8456066a authored by Bart Van Assche's avatar Bart Van Assche
Browse files

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: default avatarBart Van Assche <bart.vanassche@sandisk.com>
Cc: Chris Boot <bootc@bootc.net>
parent ecaf597b
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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);