commit | 7e443312403ad1ff40ef3177590e96d1fe747c79 | [log] [tgz] |
---|---|---|
author | Alan Stern <stern@rowland.harvard.edu> | Tue Sep 07 11:27:52 2010 -0400 |
committer | James Bottomley <James.Bottomley@suse.de> | Tue Sep 07 10:31:54 2010 -0500 |
tree | 50a5428e88d62c5d02e045614fc31c05194d1be4 | |
parent | 0fb576d8251c10f498ed4c6938aeeed8d0c93cfe [diff] |
[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 <stern@rowland.harvard.edu> Signed-off-by: James Bottomley <James.Bottomley@suse.de>