diff options
author | Christoph Hellwig <hch@infradead.org> | 2011-10-17 13:56:50 -0400 |
---|---|---|
committer | Nicholas Bellinger <nab@linux-iscsi.org> | 2011-10-23 23:21:47 -0400 |
commit | bfaf40ada2e15bc972cab4cd5452a88720e30647 (patch) | |
tree | 23f64315f802c1e81b14a80988e1f192813c1133 /drivers/target | |
parent | 4499dda85890e6726def812febaab5dc064cc920 (diff) |
target: remove the TRANSPORT_REMOVE state
We never queue an command with this state, and only set it in a completely
bogus place in tcm_fc.
Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
Diffstat (limited to 'drivers/target')
-rw-r--r-- | drivers/target/target_core_transport.c | 3 | ||||
-rw-r--r-- | drivers/target/tcm_fc/tfc_cmd.c | 1 |
2 files changed, 0 insertions, 4 deletions
diff --git a/drivers/target/target_core_transport.c b/drivers/target/target_core_transport.c index 53d332c87dcf..0d055f08044e 100644 --- a/drivers/target/target_core_transport.c +++ b/drivers/target/target_core_transport.c | |||
@@ -4787,9 +4787,6 @@ get_cmd: | |||
4787 | case TRANSPORT_COMPLETE_OK: | 4787 | case TRANSPORT_COMPLETE_OK: |
4788 | transport_generic_complete_ok(cmd); | 4788 | transport_generic_complete_ok(cmd); |
4789 | break; | 4789 | break; |
4790 | case TRANSPORT_REMOVE: | ||
4791 | transport_put_cmd(cmd); | ||
4792 | break; | ||
4793 | case TRANSPORT_FREE_CMD_INTR: | 4790 | case TRANSPORT_FREE_CMD_INTR: |
4794 | transport_generic_free_cmd(cmd, 0); | 4791 | transport_generic_free_cmd(cmd, 0); |
4795 | break; | 4792 | break; |
diff --git a/drivers/target/tcm_fc/tfc_cmd.c b/drivers/target/tcm_fc/tfc_cmd.c index 55a278ed1111..6195026cc7b0 100644 --- a/drivers/target/tcm_fc/tfc_cmd.c +++ b/drivers/target/tcm_fc/tfc_cmd.c | |||
@@ -267,7 +267,6 @@ static void ft_recv_seq(struct fc_seq *sp, struct fc_frame *fp, void *arg) | |||
267 | 267 | ||
268 | if (IS_ERR(fp)) { | 268 | if (IS_ERR(fp)) { |
269 | /* XXX need to find cmd if queued */ | 269 | /* XXX need to find cmd if queued */ |
270 | cmd->se_cmd.t_state = TRANSPORT_REMOVE; | ||
271 | cmd->seq = NULL; | 270 | cmd->seq = NULL; |
272 | transport_generic_free_cmd(&cmd->se_cmd, 0); | 271 | transport_generic_free_cmd(&cmd->se_cmd, 0); |
273 | return; | 272 | return; |