"...0d0cea2424ae97b27447dc64a7dbfae83c036c45b403392f0e8ba.png" did not exist on "d698a34da7c5626c3c16a6311c6290522e902e7f"
block: fix __blkdev_get() for removable devices
Commit 0762b8bd moved disk_get_part() in front of recursive get on the whole disk, which caused removable devices to try disk_get_part() before rescanning after a new media is inserted, which might fail legit open attempts or give the old partition. This patch fixes the problem by moving disk_get_part() after __blkdev_get() on the whole disk. This problem was spotted by Borislav Petkov. Signed-off-by:Tejun Heo <tj@kernel.org> Tested-by:
Borislav Petkov <petkovbb@gmail.com> Signed-off-by:
Jens Axboe <jens.axboe@oracle.com>
Loading
Please register or sign in to comment