diff options
author | Christoph Hellwig <hch@lst.de> | 2021-02-23 18:18:22 +0300 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2021-02-24 05:23:22 +0300 |
commit | 4601b4b130de2329fe06df80ed5d77265f2058e5 (patch) | |
tree | 63927d9cad3b0eaef92e46fc3361c57565147ed3 /block/blk-settings.c | |
parent | 75ab6afacda01a6bd2d3ecd4cb8485f7c8fa2fdb (diff) | |
download | linux-4601b4b130de2329fe06df80ed5d77265f2058e5.tar.xz |
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: 471bd0af544b ("sd: use bdev_check_media_change")
Reported--by: Tom Seewald <tseewald@gmail.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
Tested-by: Tom Seewald <tseewald@gmail.com>
Reviewed-by: Ming Lei <ming.lei@redhat.com>
Reviewed-by: Minwoo Im <minwoo.im.dev@gmail.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'block/blk-settings.c')
0 files changed, 0 insertions, 0 deletions