diff options
author | Christoph Hellwig <hch@infradead.org> | 2012-07-08 15:58:40 -0400 |
---|---|---|
committer | Nicholas Bellinger <nab@linux-iscsi.org> | 2012-07-16 20:35:16 -0400 |
commit | d59a02b4ebe6fe5ac42b702f1ced6368ced78d76 (patch) | |
tree | 226d6282b93e444a142c3feedc741e4d180f5ea9 | |
parent | 70baf0ab3b2608727515086bee4c484a93e22880 (diff) |
target: call transport_check_aborted_status from target_execute_cmd
When we call target_execute_cmd for write commands the command has been
on the state list before an abort might have come in before
target_execute_cmd. Call transport_check_aborted_status to deal with
this case.
Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
-rw-r--r-- | drivers/target/target_core_transport.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/target/target_core_transport.c b/drivers/target/target_core_transport.c index aeb2d576dc00..dd9c87f62d76 100644 --- a/drivers/target/target_core_transport.c +++ b/drivers/target/target_core_transport.c | |||
@@ -1865,6 +1865,12 @@ void target_execute_cmd(struct se_cmd *cmd) | |||
1865 | struct se_device *dev = cmd->se_dev; | 1865 | struct se_device *dev = cmd->se_dev; |
1866 | 1866 | ||
1867 | /* | 1867 | /* |
1868 | * If the received CDB has aleady been aborted stop processing it here. | ||
1869 | */ | ||
1870 | if (transport_check_aborted_status(cmd, 1)) | ||
1871 | return; | ||
1872 | |||
1873 | /* | ||
1868 | * Determine if IOCTL context caller in requesting the stopping of this | 1874 | * Determine if IOCTL context caller in requesting the stopping of this |
1869 | * command for LUN shutdown purposes. | 1875 | * command for LUN shutdown purposes. |
1870 | */ | 1876 | */ |