From: Christoph Hellwig <hch@lst.de>
To: Jens Axboe <axboe@kernel.dk>
Cc: linux-s390@vger.kernel.org, linux-bcache@vger.kernel.org,
Coly Li <colyli@suse.de>,
linux-raid@vger.kernel.org, Song Liu <song@kernel.org>,
dm-devel@redhat.com, linux-block@vger.kernel.org,
Tejun Heo <tj@kernel.org>
Subject: [dm-devel] store a pointer to the block_device in struct bio (again) v2
Date: Sun, 24 Jan 2021 11:02:31 +0100 [thread overview]
Message-ID: <20210124100241.1167849-1-hch@lst.de> (raw)
Hi Jens,
this series switches back from storing the gendisk + partno to storing
a block_device pointer in struct bio. The reason is two fold: for one
the new struct block_device actually is always available, removing the
need to avoid originally. Second the merge struct block_device is much
more useful than the old one, as storing it avoids the need for looking
up what used to be hd_struct during partition remapping and I/O
accounting.
Note that this series depends on the posted but not merged
"split hard read-only vs read-only policy" series.
A git tree is also available:
git://git.infradead.org/users/hch/block.git bi_bdev
Gitweb:
http://git.infradead.org/users/hch/block.git/shortlog/refs/heads/bi_bdev
Changes since v1:
- protect against double remapping I/O to partitions
Diffstat:
arch/m68k/emu/nfblock.c | 2
arch/xtensa/platforms/iss/simdisk.c | 2
block/bio-integrity.c | 18 +-
block/bio.c | 31 +---
block/blk-cgroup.c | 7
block/blk-core.c | 100 ++++++-------
block/blk-crypto-fallback.c | 2
block/blk-crypto.c | 2
block/blk-merge.c | 17 +-
block/blk-mq.c | 2
block/blk-settings.c | 2
block/blk-throttle.c | 2
block/blk.h | 5
block/bounce.c | 2
block/genhd.c | 271 ++++--------------------------------
block/partitions/core.c | 31 ----
drivers/block/brd.c | 8 -
drivers/block/drbd/drbd_int.h | 4
drivers/block/drbd/drbd_req.c | 2
drivers/block/null_blk/main.c | 2
drivers/block/pktcdvd.c | 4
drivers/block/ps3vram.c | 2
drivers/block/rsxx/dev.c | 2
drivers/block/umem.c | 2
drivers/block/zram/zram_drv.c | 2
drivers/lightnvm/pblk-init.c | 2
drivers/md/bcache/debug.c | 2
drivers/md/bcache/request.c | 39 +++--
drivers/md/dm-bio-record.h | 9 -
drivers/md/dm-raid1.c | 10 -
drivers/md/dm.c | 14 -
drivers/md/md-linear.c | 2
drivers/md/md.c | 10 -
drivers/md/md.h | 6
drivers/md/raid1.c | 6
drivers/md/raid10.c | 12 -
drivers/md/raid5.c | 2
drivers/nvdimm/blk.c | 4
drivers/nvdimm/btt.c | 4
drivers/nvdimm/pmem.c | 4
drivers/nvme/host/core.c | 6
drivers/nvme/host/lightnvm.c | 3
drivers/nvme/host/multipath.c | 6
drivers/nvme/host/rdma.c | 2
drivers/s390/block/dasd.c | 26 ---
drivers/s390/block/dcssblk.c | 6
drivers/s390/block/xpram.c | 2
fs/btrfs/check-integrity.c | 10 -
fs/btrfs/raid56.c | 7
fs/btrfs/scrub.c | 2
fs/direct-io.c | 2
fs/f2fs/data.c | 12 -
include/linux/bio.h | 20 +-
include/linux/blk-mq.h | 4
include/linux/blk_types.h | 4
include/linux/blkdev.h | 20 --
include/linux/genhd.h | 21 --
kernel/trace/blktrace.c | 16 +-
mm/page_io.c | 2
59 files changed, 260 insertions(+), 561 deletions(-)
--
dm-devel mailing list
dm-devel@redhat.com
https://www.redhat.com/mailman/listinfo/dm-devel
next reply other threads:[~2021-01-24 10:13 UTC|newest]
Thread overview: 26+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-01-24 10:02 Christoph Hellwig [this message]
2021-01-24 10:02 ` [dm-devel] [PATCH 01/10] brd: remove the end of device check in brd_do_bvec Christoph Hellwig
2021-01-25 13:51 ` Johannes Thumshirn
2021-01-24 10:02 ` [dm-devel] [PATCH 02/10] dcssblk: remove the end of device check in dcssblk_submit_bio Christoph Hellwig
2021-01-25 13:52 ` Johannes Thumshirn
2021-01-24 10:02 ` [dm-devel] [PATCH 03/10] block: store a block_device pointer in struct bio Christoph Hellwig
2021-01-24 10:02 ` [dm-devel] [PATCH 04/10] block: simplify submit_bio_checks a bit Christoph Hellwig
2021-01-25 14:02 ` Johannes Thumshirn
2021-01-24 10:02 ` [dm-devel] [PATCH 05/10] block: do not reassig ->bi_bdev when partition remapping Christoph Hellwig
2021-01-25 17:53 ` Jens Axboe
2021-01-25 17:55 ` Christoph Hellwig
2021-01-25 17:57 ` Jens Axboe
2021-01-25 18:03 ` Jens Axboe
2021-01-25 18:13 ` Christoph Hellwig
2021-01-25 18:15 ` Jens Axboe
2021-01-25 18:18 ` Christoph Hellwig
2021-01-25 18:19 ` Jens Axboe
2021-01-25 18:21 ` Christoph Hellwig
2021-01-25 18:31 ` Jens Axboe
2021-01-24 10:02 ` [dm-devel] [PATCH 06/10] block: use ->bi_bdev for bio based I/O accounting Christoph Hellwig
2021-01-24 10:02 ` [dm-devel] [PATCH 07/10] blk-mq: use ->bi_bdev for " Christoph Hellwig
2021-01-24 10:02 ` [dm-devel] [PATCH 08/10] block: add a disk_uevent helper Christoph Hellwig
2021-01-25 14:14 ` Johannes Thumshirn
2021-01-24 10:02 ` [dm-devel] [PATCH 09/10] block: remove DISK_PITER_REVERSE Christoph Hellwig
2021-01-24 10:02 ` [dm-devel] [PATCH 10/10] block: use an xarray for disk->part_tbl Christoph Hellwig
2021-01-25 16:24 ` [dm-devel] store a pointer to the block_device in struct bio (again) v2 Jens Axboe
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20210124100241.1167849-1-hch@lst.de \
--to=hch@lst.de \
--cc=axboe@kernel.dk \
--cc=colyli@suse.de \
--cc=dm-devel@redhat.com \
--cc=linux-bcache@vger.kernel.org \
--cc=linux-block@vger.kernel.org \
--cc=linux-raid@vger.kernel.org \
--cc=linux-s390@vger.kernel.org \
--cc=song@kernel.org \
--cc=tj@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).