Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 208266
b: refs/heads/master
c: 6de4370
h: refs/heads/master
v: v3
  • Loading branch information
Arnd Bergmann authored and Jens Axboe committed Aug 7, 2010
1 parent b95d2fe commit 1433b35
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 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: 62c2a7d969f30163f733c81158254b3095b23e72
refs/heads/master: 6de43703108bb1d3fc9495b3e8107d6ec72f97e4
4 changes: 0 additions & 4 deletions trunk/block/ioctl.c
Original file line number Diff line number Diff line change
Expand Up @@ -197,10 +197,8 @@ int blkdev_ioctl(struct block_device *bdev, fmode_t mode, unsigned cmd,
if (ret != -EINVAL && ret != -ENOTTY)
return ret;

lock_kernel();
fsync_bdev(bdev);
invalidate_bdev(bdev);
unlock_kernel();
return 0;

case BLKROSET:
Expand All @@ -212,9 +210,7 @@ int blkdev_ioctl(struct block_device *bdev, fmode_t mode, unsigned cmd,
return -EACCES;
if (get_user(n, (int __user *)(arg)))
return -EFAULT;
lock_kernel();
set_device_ro(bdev, n);
unlock_kernel();
return 0;

case BLKDISCARD: {
Expand Down

0 comments on commit 1433b35

Please sign in to comment.