scsi: smartpqi: enhance resets
authorKevin Barnett <kevin.barnett@hpe.com>
Wed, 3 May 2017 23:52:58 +0000 (18:52 -0500)
committerMartin K. Petersen <martin.petersen@oracle.com>
Tue, 13 Jun 2017 00:48:02 +0000 (20:48 -0400)
commit7561a7e4412e515100ac195303531fc2621ac2db
tree5a414e3c4a03894e8c1e8b4c991bc48c1cb836fe
parent6a50d6ada03d8d9102a632d0e2db70cd9b6620f5
scsi: smartpqi: enhance resets

- Block all I/O targeted at LUN reset device.
- Wait until all I/O targeted at LUN reset device has been
  consumed by the controller.
- Issue LUN reset request.
- Wait until all outstanding I/Os and LUN reset completion
  have been received by the host.
- Return to OS results of LUN reset request.

Reviewed-by: Scott Benesh <scott.benesh@microsemi.com>
Signed-off-by: Kevin Barnett <kevin.barnett@microsemi.com>
Signed-off-by: Don Brace <don.brace@microsemi.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/smartpqi/smartpqi.h
drivers/scsi/smartpqi/smartpqi_init.c