[SCSI] libsas: correctly flush the LU queue on error recovery
authorJames Bottomley <James.Bottomley@HansenPartnership.com>
Fri, 22 Feb 2008 23:07:52 +0000 (17:07 -0600)
committerJames Bottomley <James.Bottomley@HansenPartnership.com>
Fri, 22 Feb 2008 23:23:47 +0000 (17:23 -0600)
commit63e4563b9cf77875286312758f61a20f912afbbb
tree80a7d74e07f6788cb4c9a6eb2443f4590053eea5
parent91b550604480eadcdadc7db8a7d19f496ccad6bd
[SCSI] libsas: correctly flush the LU queue on error recovery

The current sas_scsi_clear_queue_lu() is wrongly checking for commands
which match the pointer to the one passed in.  It should be checking for
commands which are on the same logical unit as the one passed in.  Fix
this by checking target pointer and LUN for equality.

Signed-off-by: James Bottomley <James.Bottomley@HansenPartnership.com>
drivers/scsi/libsas/sas_scsi_host.c