partition iteration simplifications

Christoph Hellwig
2021-04-06T06:23:09Z

Hi all,

with the switch to an xarray for storing the partitions of a gendisk we
can now use the xarray iterators for iterating over the partitions and don't
really need the disk_part_iter_* scheme. Also clean up the teardown of
partitions where I think we have a (very unlikely to hit) race currently.

Diffstat:
block/blk.h | 1
block/genhd.c | 183 +++++++++++-----------------------------
block/partitions/core.c | 54 +++++------
drivers/s390/block/dasd_genhd.c | 3
fs/block_dev.c | 8 +
include/linux/genhd.h | 21 ----
6 files changed, 84 insertions(+), 186 deletions(-)