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

Commit a7c44d4a authored by Christoph Hellwig's avatar Christoph Hellwig Committed by James Bottomley
Browse files

[SCSI] mpt2sas: do not check serial_number in the abort handler



The SCSI midlayer stops all command processing when in error handling, which
means there is no chance for command reuse when the abort handler is called.

Signed-off-by: default avatarChristoph Hellwig <hch@lst.de>
Acked-by: default avatar"Moore, Eric" <Eric.Moore@lsi.com>
Signed-off-by: default avatarJames Bottomley <James.Bottomley@suse.de>
parent 05d1091f
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -2133,8 +2133,7 @@ mpt2sas_scsih_issue_tm(struct MPT2SAS_ADAPTER *ioc, u16 handle, uint channel,
	switch (type) {
	case MPI2_SCSITASKMGMT_TASKTYPE_ABORT_TASK:
		scmd_lookup = _scsih_scsi_lookup_get(ioc, smid_task);
		if (scmd_lookup && (scmd_lookup->serial_number ==
		    scmd->serial_number))
		if (scmd_lookup)
			rc = FAILED;
		else
			rc = SUCCESS;