Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 210611
b: refs/heads/master
c: 7e44331
h: refs/heads/master
i:
  210609: 353cd4d
  210607: f08b826
v: v3
  • Loading branch information
Alan Stern authored and James Bottomley committed Sep 7, 2010
1 parent 861a3fb commit d9c5788
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 0fb576d8251c10f498ed4c6938aeeed8d0c93cfe
refs/heads/master: 7e443312403ad1ff40ef3177590e96d1fe747c79
2 changes: 1 addition & 1 deletion trunk/drivers/scsi/sd.c
Original file line number Diff line number Diff line change
Expand Up @@ -870,7 +870,7 @@ static int sd_release(struct gendisk *disk, fmode_t mode)

SCSI_LOG_HLQUEUE(3, sd_printk(KERN_INFO, sdkp, "sd_release\n"));

if (atomic_dec_return(&sdkp->openers) && sdev->removable) {
if (atomic_dec_return(&sdkp->openers) == 0 && sdev->removable) {
if (scsi_block_when_processing_errors(sdev))
scsi_set_medium_removal(sdev, SCSI_REMOVAL_ALLOW);
}
Expand Down

0 comments on commit d9c5788

Please sign in to comment.