hpsa: fix rmmod issues
authorDon Brace <don.brace@pmcs.com>
Sat, 18 Jul 2015 16:13:15 +0000 (11:13 -0500)
committerJames Bottomley <JBottomley@Odin.com>
Wed, 26 Aug 2015 23:29:49 +0000 (16:29 -0700)
commit2d041306b669e281427de7dd398e74335c9f5042
treeca83005bb8ef66ebe2139e5a6880ba7a17d7bc56
parent9a4178b76a973684750d20b684bae4f57ab9a355
hpsa: fix rmmod issues

The driver is calling hpsa_shutdown before calling scsi_remove_host.
hpsa_shutdown is disabling interrupts.

scsi_remove_host can trigger I/O operations, such as
SYNCHRONIZE CACHE when multipath is enabled which hang the system.

Call scsi_remove_host before calling hpsa_shutdown.

Reviewed-by: Kevin Barnett <kevin.barnett@pmcs.com>
Reviewed-by: Scott Teel <scott.teel@pmcs.com>
Reviewed-by: Tomas Henzl <thenzl@redhat.com>
Signed-off-by: Don Brace <don.brace@pmcs.com>
Signed-off-by: James Bottomley <JBottomley@Odin.com>
drivers/scsi/hpsa.c