hpsa: cleanup reset
authorWebb Scales <webbnh@hp.com>
Thu, 23 Apr 2015 14:35:22 +0000 (09:35 -0500)
committerJames Bottomley <JBottomley@Odin.com>
Mon, 1 Jun 2015 00:47:31 +0000 (17:47 -0700)
commitd604f5336aee7e67377bdbcd354ea6a7d3979dcb
tree4fd5dcc752d4ee7bc309a56821729b7a3321ca23
parent39c53f55a950027fe8e94d56541e21f1a921f7ce
hpsa: cleanup reset

Synchronize completion the reset with completion of outstanding commands

Extending the newly-added synchronous abort functionality,
now also synchronize resets with the completion of outstanding commands.
Rename the wait queue to reflect the fact that it's being used for both
types of waits.  Also, don't complete commands which are terminated
due to a reset operation.

fix for controller lockup during reset

Reviewed-by: Scott Teel <scott.teel@pmcs.com>
Reviewed-by: Kevin Barnett <kevin.barnett@pmcs.com>
Reviewed-by: Tomas Henzl <thenzl@redhat.com>
Reviewed-by: Hannes Reinecke <hare@Suse.de>
Signed-off-by: Webb Scales <webbnh@hp.com>
Signed-off-by: Don Brace <don.brace@pmcs.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: James Bottomley <JBottomley@Odin.com>
drivers/scsi/hpsa.c
drivers/scsi/hpsa.h
drivers/scsi/hpsa_cmd.h