Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit d59a02b4 authored by Christoph Hellwig's avatar Christoph Hellwig Committed by Nicholas Bellinger
Browse files

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: default avatarChristoph Hellwig <hch@lst.de>
Signed-off-by: default avatarNicholas Bellinger <nab@linux-iscsi.org>
parent 70baf0ab
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -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.