Christoph Hellwig 10c70d95c0 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ý <mkoutny@suse.com>
Reported-by: Yang Xu <xuyang2018.jy@cn.fujitsu.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
2020-04-30 10:25:43 -06:00
..
2020-03-27 12:04:34 -06:00
2020-03-27 12:04:34 -06:00
2019-07-09 10:45:06 -07:00
2020-03-17 20:55:21 +01:00
2020-03-30 11:43:51 -07:00
2019-10-07 21:19:10 -06:00
2020-03-30 11:43:51 -07:00
2020-03-27 12:04:34 -06:00
2020-01-03 09:33:21 +01:00
2020-03-30 11:20:13 -07:00
2019-07-15 09:20:27 -03:00
2020-01-06 20:59:04 -07:00
2020-01-06 20:59:04 -07:00