diff options
-rw-r--r-- | block/ioctl.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/block/ioctl.c b/block/ioctl.c index 60f477c91eef..09fd7f1ef23a 100644 --- a/block/ioctl.c +++ b/block/ioctl.c | |||
@@ -296,14 +296,10 @@ int blkdev_ioctl(struct block_device *bdev, fmode_t mode, unsigned cmd, | |||
296 | bd_release(bdev); | 296 | bd_release(bdev); |
297 | return ret; | 297 | return ret; |
298 | case BLKPG: | 298 | case BLKPG: |
299 | lock_kernel(); | ||
300 | ret = blkpg_ioctl(bdev, (struct blkpg_ioctl_arg __user *) arg); | 299 | ret = blkpg_ioctl(bdev, (struct blkpg_ioctl_arg __user *) arg); |
301 | unlock_kernel(); | ||
302 | break; | 300 | break; |
303 | case BLKRRPART: | 301 | case BLKRRPART: |
304 | lock_kernel(); | ||
305 | ret = blkdev_reread_part(bdev); | 302 | ret = blkdev_reread_part(bdev); |
306 | unlock_kernel(); | ||
307 | break; | 303 | break; |
308 | case BLKGETSIZE: | 304 | case BLKGETSIZE: |
309 | size = bdev->bd_inode->i_size; | 305 | size = bdev->bd_inode->i_size; |