From: Douglas Gilbert Date: Sun, 31 Aug 2014 23:09:59 +0000 (-0400) Subject: scsi_debug: deadlock between completions and surprise module removal X-Git-Tag: fixes-for-v3.18-merge-window~25^2^2~18 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=db525fce95f0ee39102f06f8599ced3f3f3af128;p=pandora-kernel.git scsi_debug: deadlock between completions and surprise module removal A deadlock has been reported when the completion of SCSI commands (simulated by a timer) was surprised by a module removal. This patch removes one half of the offending locks around timer deletions. This fix is applied both to stop_all_queued() which is were the deadlock was discovered and stop_queued_cmnd() which has very similar logic. This patch should be applied both to the lk 3.17 tree and Christoph's drivers-for-3.18 tree. Tested-and-reported-by: Milan Broz Signed-off-by: Douglas Gilbert Signed-off-by: Christoph Hellwig --- Reading git-diff-tree failed