aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/target/tcm_fc/tfc_cmd.c
diff options
context:
space:
mode:
authorRoland Dreier <roland@purestorage.com>2011-10-06 12:56:16 -0400
committerNicholas Bellinger <nab@linux-iscsi.org>2011-10-23 23:20:53 -0400
commitdd503a5fcc0dfb8b5fd887bd967b6f431176864b (patch)
tree59d5bd7db7d4040ea91def8676cca5334f9926a6 /drivers/target/tcm_fc/tfc_cmd.c
parent942d82646e16725ac366d44087b8c992f2cb2190 (diff)
target: Have core_tmr_alloc_req() take an explicit GFP_xxx flag
Testing in_interrupt() to know when sleeping is allowed is not really reliable (since eg it won't be true if the caller is holding a spinlock). Instead have the caller tell core_tmr_alloc_req() what GFP_xxx to use; every caller except tcm_qla2xxx can use GFP_KERNEL. Signed-off-by: Roland Dreier <roland@purestorage.com> Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
Diffstat (limited to 'drivers/target/tcm_fc/tfc_cmd.c')
-rw-r--r--drivers/target/tcm_fc/tfc_cmd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/target/tcm_fc/tfc_cmd.c b/drivers/target/tcm_fc/tfc_cmd.c
index 7f2ee5a0ed79..55a278ed1111 100644
--- a/drivers/target/tcm_fc/tfc_cmd.c
+++ b/drivers/target/tcm_fc/tfc_cmd.c
@@ -396,7 +396,7 @@ static void ft_send_tm(struct ft_cmd *cmd)
396 } 396 }
397 397
398 pr_debug("alloc tm cmd fn %d\n", tm_func); 398 pr_debug("alloc tm cmd fn %d\n", tm_func);
399 tmr = core_tmr_alloc_req(&cmd->se_cmd, cmd, tm_func); 399 tmr = core_tmr_alloc_req(&cmd->se_cmd, cmd, tm_func, GFP_KERNEL);
400 if (!tmr) { 400 if (!tmr) {
401 pr_debug("alloc failed\n"); 401 pr_debug("alloc failed\n");
402 ft_send_resp_code_and_free(cmd, FCP_TMF_FAILED); 402 ft_send_resp_code_and_free(cmd, FCP_TMF_FAILED);