From: FUJITA Tomonori Date: Wed, 28 May 2008 22:56:55 +0000 (+0900) Subject: [SCSI] bsg: fix bsg_mutex hang with device removal X-Git-Tag: v2.6.27-rc1~1059^2~44 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3f27e3ed11e67c5ee19d560a50eafd93cf8c6682;p=pandora-kernel.git [SCSI] bsg: fix bsg_mutex hang with device removal We don't need to hold bsg_mutex during bsg_complete_all_commands(). It leads to a problem that we block bsg_unregister_queue during bsg_complete_all_commands (untill all the outstanding commands complete). Thanks to Pete Wyckoff for finding the bug and testing the patch. The detailed bug report is: http://marc.info/?l=linux-scsi&m=121182137132145&w=2 Tested-by: Pete Wyckoff Signed-off-by: FUJITA Tomonori Signed-off-by: James Bottomley --- Reading git-diff-tree failed