diff options
author | Bart Van Assche <bart.vanassche@sandisk.com> | 2016-11-18 18:40:31 -0500 |
---|---|---|
committer | Bart Van Assche <bart.vanassche@sandisk.com> | 2016-12-09 13:20:07 -0500 |
commit | 8456066a57940b3884aa080c58b166567dc9de39 (patch) | |
tree | d2ce8ac7e0c6bd6d7ba65d4fbb414dad25fda7fa | |
parent | ecaf597b411e9a7b071bf7a36a4cf750c529cd28 (diff) |
sbp-target: Fix second argument of percpu_ida_alloc()
Pass a task state as second argument to percpu_ida_alloc().
Fixes: commit 5a3ee221b543 ("sbp-target: Conversion to percpu_ida tag pre-allocation")
Signed-off-by: Bart Van Assche <bart.vanassche@sandisk.com>
Cc: Chris Boot <bootc@bootc.net>
-rw-r--r-- | drivers/target/sbp/sbp_target.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/target/sbp/sbp_target.c b/drivers/target/sbp/sbp_target.c index 58bb6ed18185..6ca388eca33b 100644 --- a/drivers/target/sbp/sbp_target.c +++ b/drivers/target/sbp/sbp_target.c | |||
@@ -928,7 +928,7 @@ static struct sbp_target_request *sbp_mgt_get_req(struct sbp_session *sess, | |||
928 | struct sbp_target_request *req; | 928 | struct sbp_target_request *req; |
929 | int tag; | 929 | int tag; |
930 | 930 | ||
931 | tag = percpu_ida_alloc(&se_sess->sess_tag_pool, GFP_ATOMIC); | 931 | tag = percpu_ida_alloc(&se_sess->sess_tag_pool, TASK_RUNNING); |
932 | if (tag < 0) | 932 | if (tag < 0) |
933 | return ERR_PTR(-ENOMEM); | 933 | return ERR_PTR(-ENOMEM); |
934 | 934 | ||