Christoph Hellwig 68e6582e8f block: return -EBUSY when there are open partitions in blkdev_reread_part
The switch to go through blkdev_get_by_dev means we now ignore the
return value from bdev_disk_changed in __blkdev_get.  Add a manual
check to restore the old semantics.

Fixes: 4601b4b130de ("block: reopen the device in blkdev_reread_part")
Reported-by: Karel Zak <kzak@redhat.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
Link: https://lore.kernel.org/r/20210421160502.447418-1-hch@lst.de
Signed-off-by: Jens Axboe <axboe@kernel.dk>
2021-04-21 10:49:37 -06:00
..
2020-08-18 07:48:08 -07:00
2021-02-21 11:02:48 -08:00
2020-09-03 15:20:47 -06:00
2020-03-17 20:55:21 +01:00
2021-02-22 10:53:05 -08:00
2020-05-29 16:30:39 -06:00
2020-09-23 09:18:13 -06:00
2020-01-06 20:59:04 -07:00