[SCSI] scsi_transport_fc: fix blocked bsg request when fc object deleted
authorJames Smart <james.smart@emulex.com>
Wed, 1 Sep 2010 02:27:31 +0000 (22:27 -0400)
committerJames Bottomley <James.Bottomley@suse.de>
Thu, 9 Sep 2010 20:37:40 +0000 (15:37 -0500)
commit78d16341facf829a71b6f7c68ec5511b9c168060
treeea63d438409b6b955f8514268bc368bf5a99c4d3
parent91978465b1e5f89025cd43cd2102943160ec6dee
[SCSI] scsi_transport_fc: fix blocked bsg request when fc object deleted

When an rport is "blocked" and a bsg request is received, the bsg request gets
placed on the queue but the queue stalls. If the fc object is then deleted - the
bsg queue never restarts and keeps the reference on the object, and stops the
overall teardown.

This patch restarts the bsg queue on teardown and drains any pending requests,
allowing the teardown to succeed.

Signed-off-by: Carl Lajeunesse <carl.lajeunesse@emulex.com>
Signed-off-by: James Smart <james.smart@emulex.com>
Signed-off-by: James Bottomley <James.Bottomley@suse.de>
drivers/scsi/scsi_transport_fc.c