linux-block.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* fixes and cleanups for block_device refcounting v3
@ 2021-07-24  7:12 Christoph Hellwig
  2021-07-24  7:12 ` [PATCH 01/10] block: delay freeing the gendisk Christoph Hellwig
                   ` (10 more replies)
  0 siblings, 11 replies; 18+ messages in thread
From: Christoph Hellwig @ 2021-07-24  7:12 UTC (permalink / raw)
  To: Jens Axboe
  Cc: Josef Bacik, David Sterba, Naohiro Aota, linux-block, linux-btrfs

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(-)

^ permalink raw reply	[flat|nested] 18+ messages in thread

end of thread, other threads:[~2021-07-26 10:18 UTC | newest]

Thread overview: 18+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-07-24  7:12 fixes and cleanups for block_device refcounting v3 Christoph Hellwig
2021-07-24  7:12 ` [PATCH 01/10] block: delay freeing the gendisk Christoph Hellwig
2021-07-24  7:12 ` [PATCH 02/10] block: assert the locking state in delete_partition Christoph Hellwig
2021-07-24  7:12 ` [PATCH 03/10] block: unhash the block device inodes earlier Christoph Hellwig
2021-07-26 10:15   ` Ming Lei
2021-07-24  7:12 ` [PATCH 04/10] block: remove the GENHD_FL_UP check in blkdev_get_no_open Christoph Hellwig
2021-07-26 10:16   ` Ming Lei
2021-07-24  7:12 ` [PATCH 05/10] block: allocate bd_meta_info later in add_partitions Christoph Hellwig
2021-07-24  7:12 ` [PATCH 06/10] block: change the refcounting for partitions Christoph Hellwig
2021-07-26  2:20   ` Damien Le Moal
2021-07-26 10:17   ` Ming Lei
2021-07-24  7:12 ` [PATCH 07/10] btrfs: store a block_device in struct btrfs_ordered_extent Christoph Hellwig
2021-07-24  7:12 ` [PATCH 08/10] loop: don't grab a reference to the block device Christoph Hellwig
2021-07-24  7:12 ` [PATCH 09/10] block: remove bdgrab Christoph Hellwig
2021-07-24  7:12 ` [PATCH 10/10] block: remove bdput Christoph Hellwig
2021-07-24  7:22 ` fixes and cleanups for block_device refcounting v3 Christoph Hellwig
2021-07-24 16:06   ` Jens Axboe
2021-07-24 16:54     ` Christoph Hellwig

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).