Hi Jens,
this series fixes up a possible race with the block_device lookup
changes, and the finishes off the conversion to stop using the inode
refcount for block devices.
Note that patch 1 is a 5.14 and -stable candidate.
Changes since v2:
- fix a double put_disk in the add_partition error path
- split a patch and better document the two new ones
- also remove partition bdev inodes a little earlier
Changes since v1:
- clean up btrfs even more by storing a bdev instead of the disk
- keep a persistent disk reference in the bdev
- a bunch of cleanups to make the above change easier
Diffstat:
block/genhd.c | 13 ++-----
block/partitions/core.c | 37 +++++++++------------
drivers/block/loop.c | 5 --
fs/block_dev.c | 83 ++++++++++++++----------------------------------
fs/btrfs/inode.c | 2 -
fs/btrfs/ordered-data.c | 2 -
fs/btrfs/ordered-data.h | 3 -
fs/btrfs/zoned.c | 12 ++----
include/linux/blkdev.h | 2 -
9 files changed, 51 insertions(+), 108 deletions(-)