Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 249141
b: refs/heads/master
c: c4c58c5
h: refs/heads/master
i:
  249139: 3093b69
v: v3
  • Loading branch information
K. Y. Srinivasan authored and Greg Kroah-Hartman committed Apr 25, 2011
1 parent 09cb9cf commit b9ed692
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 10 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: a2b9d24eafd4785e5a07924cdb5a37867bda4620
refs/heads/master: c4c58c583c1e21adc2b04316170c4fc355ab0123
10 changes: 1 addition & 9 deletions trunk/drivers/staging/hv/blkvsc_drv.c
Original file line number Diff line number Diff line change
Expand Up @@ -255,20 +255,12 @@ static int blkvsc_open(struct block_device *bdev, fmode_t mode)
{
struct block_device_context *blkdev = bdev->bd_disk->private_data;


mutex_lock(&blkvsc_mutex);
spin_lock(&blkdev->lock);

if (!blkdev->users && blkdev->device_type == DVD_TYPE) {
spin_unlock(&blkdev->lock);
check_disk_change(bdev);
spin_lock(&blkdev->lock);
}

blkdev->users++;

spin_unlock(&blkdev->lock);
mutex_unlock(&blkvsc_mutex);

return 0;
}

Expand Down

0 comments on commit b9ed692

Please sign in to comment.