From: Alan Stern Date: Tue, 7 Sep 2010 15:27:52 +0000 (-0400) Subject: [SCSI] sd: fix medium-removal bug X-Git-Tag: v2.6.36-rc4~5^2~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7e443312403ad1ff40ef3177590e96d1fe747c79;p=pandora-kernel.git [SCSI] sd: fix medium-removal bug Commit 409f3499a2cfcd1e9c2857c53af7fcce069f027f (scsi/sd: remove big kernel lock) introduced a bug in the sd_release routine. Medium removal should be allowed when the number of open file references drops to 0, not when it becomes non-zero. This patch (as1414) adjusts the test to fix the bug. Signed-off-by: Alan Stern Signed-off-by: James Bottomley --- Reading git-diff-tree failed