]> git.baikalelectronics.ru Git - kernel.git/commit
[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)
commitad359358a20ce47ad005de7a375804761da84873
tree80a7d74e07f6788cb4c9a6eb2443f4590053eea5
parentb7b83779964ebc950fc875d6ab09082ccdb46f6a
[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