diff options
| author | Christoph Hellwig <[email protected]> | 2020-04-28 08:52:03 +0000 |
|---|---|---|
| committer | Jens Axboe <[email protected]> | 2020-04-30 16:25:43 +0000 |
| commit | 10c70d95c0f2f9a6f52d0e33243d2877370cef51 (patch) | |
| tree | 6a0a7bb8aa945be7c521cbc1c93053ca9706b550 /lib/test_linear_ranges.c | |
| parent | Merge branch 'nvme-5.7' of git://git.infradead.org/nvme into block-5.7 (diff) | |
| download | kernel-10c70d95c0f2f9a6f52d0e33243d2877370cef51.tar.gz kernel-10c70d95c0f2f9a6f52d0e33243d2877370cef51.zip | |
block: remove the bd_openers checks in blk_drop_partitions
When replacing the bd_super check with a bd_openers I followed a logical
conclusion, which turns out to be utterly wrong. When a block device has
bd_super sets it has a mount file system on it (although not every
mounted file system sets bd_super), but that also implies it doesn't even
have partitions to start with.
So instead of trying to come up with a logical check for all openers,
just remove the check entirely.
Fixes: d3ef5536274f ("block: fix busy device checking in blk_drop_partitions")
Fixes: cb6b771b05c3 ("block: fix busy device checking in blk_drop_partitions again")
Reported-by: Michal Koutný <[email protected]>
Reported-by: Yang Xu <[email protected]>
Signed-off-by: Christoph Hellwig <[email protected]>
Signed-off-by: Jens Axboe <[email protected]>
Diffstat (limited to 'lib/test_linear_ranges.c')
0 files changed, 0 insertions, 0 deletions
