qla2xxx: Fix hang during driver unload when vport is active.
commit88d3fa3d42d6758cab35373536ec1fc9be94e597
authorArun Easi <arun.easi@qlogic.com>
Tue, 10 May 2011 18:18:16 +0000 (10 11:18 -0700)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 3 Jun 2011 01:33:35 +0000 (3 10:33 +0900)
treed896b72508e80c00413d72ef45153d12ea6cdd86
parente5664c3da9affbcca581c9a9d4a7a5dae3ca8826
qla2xxx: Fix hang during driver unload when vport is active.

commit 43ebf16d762b082663976b679b813e1b546548d1 upstream.

Bumping ref count during fc_vport_terminate() was the cause. vport
delete would wait for ref count to drop to zero and that would never
happen.

Signed-off-by: Arun Easi <arun.easi@qlogic.com>
Signed-off-by: Madhuranath Iyengar <Madhu.Iyengar@qlogic.com>
Signed-off-by: James Bottomley <jbottomley@parallels.com>
Signed-off-by: James Bottomley <James.Bottomley@suse.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/scsi/qla2xxx/qla_os.c