Commit 15392efb9d427482754f6d267262452878667499
Committed by
Jens Axboe
1 parent
6de4370310
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>
Showing 1 changed file with 0 additions and 4 deletions Side-by-side Diff
block/ioctl.c
... | ... | @@ -296,14 +296,10 @@ |
296 | 296 | bd_release(bdev); |
297 | 297 | return ret; |
298 | 298 | case BLKPG: |
299 | - lock_kernel(); | |
300 | 299 | ret = blkpg_ioctl(bdev, (struct blkpg_ioctl_arg __user *) arg); |
301 | - unlock_kernel(); | |
302 | 300 | break; |
303 | 301 | case BLKRRPART: |
304 | - lock_kernel(); | |
305 | 302 | ret = blkdev_reread_part(bdev); |
306 | - unlock_kernel(); | |
307 | 303 | break; |
308 | 304 | case BLKGETSIZE: |
309 | 305 | size = bdev->bd_inode->i_size; |