Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 43504
b: refs/heads/master
c: 6796bf5
h: refs/heads/master
v: v3
  • Loading branch information
NeilBrown authored and Linus Torvalds committed Dec 8, 2006
1 parent 103c8f0 commit 20c6561
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 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: 37be41241f43109c55d92cdbf303399eea642f14
refs/heads/master: 6796bf54a64df36f96a42ae222423fffe36c58a5
4 changes: 2 additions & 2 deletions trunk/fs/block_dev.c
Original file line number Diff line number Diff line change
Expand Up @@ -920,7 +920,7 @@ static int do_open(struct block_device *bdev, struct file *file, int for_part)
}
owner = disk->fops->owner;

mutex_lock(&bdev->bd_mutex);
mutex_lock_nested(&bdev->bd_mutex, for_part);
if (!bdev->bd_openers) {
bdev->bd_disk = disk;
bdev->bd_contains = bdev;
Expand Down Expand Up @@ -1062,7 +1062,7 @@ static int __blkdev_put(struct block_device *bdev, int for_part)
struct gendisk *disk = bdev->bd_disk;
struct block_device *victim = NULL;

mutex_lock(&bdev->bd_mutex);
mutex_lock_nested(&bdev->bd_mutex, for_part);
lock_kernel();
if (for_part)
bdev->bd_part_count--;
Expand Down

0 comments on commit 20c6561

Please sign in to comment.