]> www.infradead.org Git - users/jedix/linux-maple.git/commit
hpsa: create workqueue after the driver is ready for use
authorRobert Elliott <elliott@hp.com>
Fri, 6 Nov 2015 13:47:44 +0000 (05:47 -0800)
committerChuck Anderson <chuck.anderson@oracle.com>
Thu, 10 Mar 2016 19:49:12 +0000 (11:49 -0800)
commit6ccc9575901aae080a4e648b1c24ec56ff28f653
tree8ba075d7dd7502c01ca58193f10963842d334240
parent7cf23fcb2cb27ee4e96a1f4d33c797166d0086e2
hpsa: create workqueue after the driver is ready for use

Don't create the resubmit workqueue in hpsa_init_one until everything else
is ready to use, so everything can be freed in reverse order of when they
were allocated without risking freeing things while workqueue items are
still active.

Destroy the workqueue in the right order in
hpsa_undo_allocations_after_kdump_soft_reset too.

Reviewed-by: Scott Teel <scott.teel@pmcs.com>
Reviewed-by: Kevin Barnett <kevin.barnett@pmcs.com>
Signed-off-by: Robert Elliott <elliott@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