]> www.infradead.org Git - users/jedix/linux-maple.git/commit
hpsa: refactor and rework support for sending TEST_UNIT_READY
authorWebb Scales <webbnh@hp.com>
Fri, 6 Nov 2015 13:47:43 +0000 (05:47 -0800)
committerChuck Anderson <chuck.anderson@oracle.com>
Thu, 10 Mar 2016 19:48:29 +0000 (11:48 -0800)
commiteefd488e3f1f5376f21882e601a816d12d24d1d8
treed81ab5d55de759f208f164312ab21bfbb9e6310c
parentdde48d8f8620973c3190948ec2af7b7712b1eb1b
hpsa: refactor and rework support for sending TEST_UNIT_READY

Factor out the code which sends the TEST_UNIT_READY from
wait_for_device_to_become_ready() into its own function.

Move the code which waits for the TEST_UNIT_READY from
wait_for_device_to_become_ready() into its own function.

If a logical drive has failed, resetting it will ensure
outstanding commands are completed, but polling it with
TURs after the reset will not work because the TURs will
never report good status.  So successful TUR should not
be a condition of success for the device reset error
handler.

Reviewed-by: Scott Teel <scott.teel@pmcs.com>
Reviewed-by: Kevin Barnett <kevin.barnett@pmcs.com>
Signed-off-by: Webb Scales <webbnh@hp.com>
Signed-off-by: Don Brace <don.brace@pmcs.com>
Orabug: 22075051
Acked-by: Chuck Anderson <chuck.anderson@oracle.com>
drivers/scsi/hpsa.c