Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
block: reopen the device in blkdev_reread_part
Historically the BLKRRPART ioctls called into the now defunct ->revalidate method, which caused the sd driver to check if any media is present. When the ->revalidate method was removed this revalidation was lost, leading to lots of I/O errors when using the eject command. Fix this by reopening the device to rescan the partitions, and thus calling the revalidation logic in the sd driver. Fixes: 471bd0a ("sd: use bdev_check_media_change") Reported--by: Tom Seewald <[email protected]> Signed-off-by: Christoph Hellwig <[email protected]> Tested-by: Tom Seewald <[email protected]> Reviewed-by: Ming Lei <[email protected]> Reviewed-by: Minwoo Im <[email protected]> Signed-off-by: Jens Axboe <[email protected]>
- Loading branch information