From: James Smart Date: Wed, 1 Sep 2010 02:27:31 +0000 (-0400) Subject: [SCSI] scsi_transport_fc: fix blocked bsg request when fc object deleted X-Git-Tag: v2.6.37-rc1~159^2~48 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=78d16341facf829a71b6f7c68ec5511b9c168060;p=pandora-kernel.git [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 Signed-off-by: James Smart Signed-off-by: James Bottomley --- Reading git-diff-tree failed