[SCSI] ipr: Proper return codes for eh_dev_reset for SATA devices
authorBrian King <brking@linux.vnet.ibm.com>
Wed, 9 May 2007 20:36:35 +0000 (15:36 -0500)
committerJames Bottomley <jejb@mulgrave.il.steeleye.com>
Wed, 16 May 2007 16:39:33 +0000 (12:39 -0400)
Currently ipr always returns success from eh_dev_reset when
called for a SATA device. If ata_do_eh is unable to recover
for some reason, this can result in commands that are still
outstanding when ata_do_eh returns. Change ipr to verify no
commands are outstanding before returning success.

Signed-off-by: Brian King <brking@linux.vnet.ibm.com>
Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>

No differences found