From: Bart Van Assche Date: Fri, 23 Sep 2011 17:48:18 +0000 (+0200) Subject: [SCSI] Make scsi_free_queue() kill pending SCSI commands X-Git-Tag: v3.2-rc1~44^2~33 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3308511c93e6ad0d3c58984ecd6e5e57f96b12c8;p=pandora-kernel.git [SCSI] Make scsi_free_queue() kill pending SCSI commands Make sure that SCSI device removal via scsi_remove_host() does finish all pending SCSI commands. Currently that's not the case and hence removal of a SCSI host during I/O can cause a deadlock. See also "blkdev_issue_discard() hangs forever if underlying storage device is removed" (http://bugzilla.kernel.org/show_bug.cgi?id=40472). See also http://lkml.org/lkml/2011/8/27/6. Signed-off-by: Bart Van Assche Cc: Signed-off-by: James Bottomley --- Reading git-diff-tree failed