qla2xxx: Fix hang during driver unload when vport is active.
authorArun Easi <arun.easi@qlogic.com>
Tue, 10 May 2011 18:18:16 +0000 (11:18 -0700)
committerSteve Conklin <sconklin@canonical.com>
Fri, 15 Jul 2011 17:20:47 +0000 (12:20 -0500)
commitf8b6410d52abc7b3de65e8562b2266f5ed444a73
tree5ec2a062fb5cedf47962ddb4661fd5b08f1206b8
parent1c7cd8663fdfe757560364490e7b4029144f6f77
qla2xxx: Fix hang during driver unload when vport is active.

BugLink: http://bugs.launchpad.net/bugs/793702

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>
Signed-off-by: Tim Gardner <tim.gardner@canonical.com>
drivers/scsi/qla2xxx/qla_os.c