aboutsummaryrefslogtreecommitdiffstats
path: root/block/ioctl.c
diff options
context:
space:
mode:
authorArnd Bergmann <arnd@arndb.de>2010-07-07 10:51:28 -0400
committerJens Axboe <jaxboe@fusionio.com>2010-08-07 12:26:08 -0400
commit15392efb9d427482754f6d267262452878667499 (patch)
treee71dd54c88454971750436f5b4e5e512b0c9368a /block/ioctl.c
parent6de43703108bb1d3fc9495b3e8107d6ec72f97e4 (diff)
block: remove BKL from partition ioctls
The blkpg_ioctl and blkdev_reread_part access fields of the bdev and gendisk structures, yet they always do so under the protection of bdev->bd_mutex, which seems sufficient. Signed-off-by: Arnd Bergmann <arnd@arndb.de> cked-by: Christoph Hellwig <hch@infradead.org> Signed-off-by: Jens Axboe <jaxboe@fusionio.com>
Diffstat (limited to 'block/ioctl.c')
-rw-r--r--block/ioctl.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/block/ioctl.c b/block/ioctl.c
index 60f477c91ee..09fd7f1ef23 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;