Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
block: export blkdev_reread_part() and __blkdev_reread_part()
This patch exports blkdev_reread_part() for block drivers, also introduce __blkdev_reread_part(). For some drivers, such as loop, reread of partitions can be run from the release path, and bd_mutex may already be held prior to calling ioctl_by_bdev(bdev, BLKRRPART, 0), so introduce __blkdev_reread_part for use in such cases. CC: Christoph Hellwig <[email protected]> CC: Jens Axboe <[email protected]> CC: Tejun Heo <[email protected]> CC: Alexander Viro <[email protected]> CC: Markus Pargmann <[email protected]> CC: Stefan Weinhuber <[email protected]> CC: Stefan Haberland <[email protected]> CC: Sebastian Ott <[email protected]> CC: Fabian Frederick <[email protected]> CC: Ming Lei <[email protected]> CC: David Herrmann <[email protected]> CC: Andrew Morton <[email protected]> CC: Peter Zijlstra <[email protected]> CC: [email protected] CC: [email protected] Reviewed-by: Christoph Hellwig <[email protected]> Signed-off-by: Jarod Wilson <[email protected]> Signed-off-by: Ming Lei <[email protected]> Signed-off-by: Jens Axboe <[email protected]>
- Loading branch information