Skip to content

Commit

Permalink
target: call transport_check_aborted_status from target_execute_cmd
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Christoph Hellwig authored and Nicholas Bellinger committed Jul 17, 2012
1 parent 70baf0a commit d59a02b
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions drivers/target/target_core_transport.c
Original file line number Diff line number Diff line change
Expand Up @@ -1864,6 +1864,12 @@ void target_execute_cmd(struct se_cmd *cmd)
{
struct se_device *dev = cmd->se_dev;

/*
* If the received CDB has aleady been aborted stop processing it here.
*/
if (transport_check_aborted_status(cmd, 1))
return;

/*
* Determine if IOCTL context caller in requesting the stopping of this
* command for LUN shutdown purposes.
Expand Down

0 comments on commit d59a02b

Please sign in to comment.