diff options
Diffstat (limited to 'drivers/target/tcm_fc/tfc_cmd.c')
-rw-r--r-- | drivers/target/tcm_fc/tfc_cmd.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/drivers/target/tcm_fc/tfc_cmd.c b/drivers/target/tcm_fc/tfc_cmd.c index 9a3b486e1aad..74d5bb766201 100644 --- a/drivers/target/tcm_fc/tfc_cmd.c +++ b/drivers/target/tcm_fc/tfc_cmd.c | |||
@@ -147,7 +147,7 @@ void ft_release_cmd(struct se_cmd *se_cmd) | |||
147 | 147 | ||
148 | void ft_check_stop_free(struct se_cmd *se_cmd) | 148 | void ft_check_stop_free(struct se_cmd *se_cmd) |
149 | { | 149 | { |
150 | transport_generic_free_cmd(se_cmd, 0, 1, 0); | 150 | transport_generic_free_cmd(se_cmd, 0, 0); |
151 | } | 151 | } |
152 | 152 | ||
153 | /* | 153 | /* |
@@ -304,7 +304,7 @@ static void ft_recv_seq(struct fc_seq *sp, struct fc_frame *fp, void *arg) | |||
304 | /* XXX need to find cmd if queued */ | 304 | /* XXX need to find cmd if queued */ |
305 | cmd->se_cmd.t_state = TRANSPORT_REMOVE; | 305 | cmd->se_cmd.t_state = TRANSPORT_REMOVE; |
306 | cmd->seq = NULL; | 306 | cmd->seq = NULL; |
307 | transport_generic_free_cmd(&cmd->se_cmd, 0, 1, 0); | 307 | transport_generic_free_cmd(&cmd->se_cmd, 0, 0); |
308 | return; | 308 | return; |
309 | } | 309 | } |
310 | 310 | ||
@@ -321,7 +321,7 @@ static void ft_recv_seq(struct fc_seq *sp, struct fc_frame *fp, void *arg) | |||
321 | printk(KERN_INFO "%s: unhandled frame r_ctl %x\n", | 321 | printk(KERN_INFO "%s: unhandled frame r_ctl %x\n", |
322 | __func__, fh->fh_r_ctl); | 322 | __func__, fh->fh_r_ctl); |
323 | fc_frame_free(fp); | 323 | fc_frame_free(fp); |
324 | transport_generic_free_cmd(&cmd->se_cmd, 0, 1, 0); | 324 | transport_generic_free_cmd(&cmd->se_cmd, 0, 0); |
325 | break; | 325 | break; |
326 | } | 326 | } |
327 | } | 327 | } |
@@ -443,7 +443,7 @@ static void ft_send_tm(struct ft_cmd *cmd) | |||
443 | sess = cmd->sess; | 443 | sess = cmd->sess; |
444 | transport_send_check_condition_and_sense(&cmd->se_cmd, | 444 | transport_send_check_condition_and_sense(&cmd->se_cmd, |
445 | cmd->se_cmd.scsi_sense_reason, 0); | 445 | cmd->se_cmd.scsi_sense_reason, 0); |
446 | transport_generic_free_cmd(&cmd->se_cmd, 0, 1, 0); | 446 | transport_generic_free_cmd(&cmd->se_cmd, 0, 0); |
447 | ft_sess_put(sess); | 447 | ft_sess_put(sess); |
448 | return; | 448 | return; |
449 | } | 449 | } |
@@ -645,7 +645,7 @@ static void ft_send_cmd(struct ft_cmd *cmd) | |||
645 | if (ret == -ENOMEM) { | 645 | if (ret == -ENOMEM) { |
646 | transport_send_check_condition_and_sense(se_cmd, | 646 | transport_send_check_condition_and_sense(se_cmd, |
647 | TCM_LOGICAL_UNIT_COMMUNICATION_FAILURE, 0); | 647 | TCM_LOGICAL_UNIT_COMMUNICATION_FAILURE, 0); |
648 | transport_generic_free_cmd(se_cmd, 0, 1, 0); | 648 | transport_generic_free_cmd(se_cmd, 0, 0); |
649 | return; | 649 | return; |
650 | } | 650 | } |
651 | if (ret == -EINVAL) { | 651 | if (ret == -EINVAL) { |
@@ -654,7 +654,7 @@ static void ft_send_cmd(struct ft_cmd *cmd) | |||
654 | else | 654 | else |
655 | transport_send_check_condition_and_sense(se_cmd, | 655 | transport_send_check_condition_and_sense(se_cmd, |
656 | se_cmd->scsi_sense_reason, 0); | 656 | se_cmd->scsi_sense_reason, 0); |
657 | transport_generic_free_cmd(se_cmd, 0, 1, 0); | 657 | transport_generic_free_cmd(se_cmd, 0, 0); |
658 | return; | 658 | return; |
659 | } | 659 | } |
660 | transport_generic_handle_cdb(se_cmd); | 660 | transport_generic_handle_cdb(se_cmd); |