sbp-target: Fix second argument of percpu_ida_alloc()
authorBart Van Assche <bart.vanassche@sandisk.com>
Fri, 18 Nov 2016 23:40:31 +0000 (15:40 -0800)
committerBart Van Assche <bart.vanassche@sandisk.com>
Fri, 9 Dec 2016 18:20:07 +0000 (10:20 -0800)
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>
drivers/target/sbp/sbp_target.c

index 58bb6ed181853b49370d9fda31f73e7bd24c7fda..6ca388eca33bda0a4481808c67662def357fd080 100644 (file)
@@ -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);