scsi: lpfc: Fix nvmet target abort cmd matching
authorJames Smart <jsmart2021@gmail.com>
Wed, 22 May 2019 00:48:52 +0000 (17:48 -0700)
committerMartin K. Petersen <martin.petersen@oracle.com>
Tue, 18 Jun 2019 23:46:20 +0000 (19:46 -0400)
commit32b938656462dd2c4aa1e91e0b48cd114c2d00f7
tree78a5bc3f6dcd1738b1c9df960490ae33dd783033
parent2d71dc8eb6e826f42f5dd0c8e005044a65c1da8b
scsi: lpfc: Fix nvmet target abort cmd matching

After receiving an unsolicited ABTS (meaning rxid is 0xFFFF), the driver
used the oxid from the initiator to match against a local xri which may
have been allocated for the io. The xri would be the rxid - it's an invalid
check resulting in the command not being matched or erroneously matched.

Change the lookup to use the oxid and the SID to match against received
IO's original values.

Signed-off-by: Dick Kennedy <dick.kennedy@broadcom.com>
Signed-off-by: James Smart <jsmart2021@gmail.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/lpfc/lpfc_nvmet.c