hpsa: check for ctlr lockup after command allocation in main io path
authorStephen Cameron <stephenmcameron@gmail.com>
Fri, 23 Jan 2015 22:44:19 +0000 (16:44 -0600)
committerJames Bottomley <JBottomley@Parallels.com>
Mon, 2 Feb 2015 17:57:42 +0000 (09:57 -0800)
commit407863cb9daddd99000c70cffb7013f47f67b29c
tree5a9011985997831a4528689283aeb13871396f86
parent07543e0c05de177f2e9612ae7756e904b329379c
hpsa: check for ctlr lockup after command allocation in main io path

Command allocation is the thing that takes the longest in the main i/o
path, so check for controller lockup immediately after this to prevent
submitting commands to locked up controller as much as possible.

Reviewed-by: Scott Teel <scott.teel@pmcs.com>
Signed-off-by: Don Brace <don.brace@pmcs.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
drivers/scsi/hpsa.c