linux-block.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* improve the bio cloning interface v2
@ 2022-02-02 16:00 Christoph Hellwig
  2022-02-02 16:00 ` [PATCH 01/13] drbd: set ->bi_bdev in drbd_req_new Christoph Hellwig
                   ` (14 more replies)
  0 siblings, 15 replies; 17+ messages in thread
From: Christoph Hellwig @ 2022-02-02 16:00 UTC (permalink / raw)
  To: Jens Axboe
  Cc: Pavel Begunkov, Mike Snitzer, Philipp Reisner, Lars Ellenberg,
	linux-block, dm-devel, drbd-dev

Hi Jens,

this series changes the bio cloning interface to match the rest changes
to the bio allocation interface and passes the block_device and operation
to the cloning helpers.  In addition it renames the cloning helpers to
be more descriptive.

To get there it requires a bit of refactoring in the device mapper code.

Changes since v1:
 - rebased to the lastest for-5.18/block tree
 - fix a fatal double initialization in device mapper

A git tree is also available here:

    git://git.infradead.org/users/hch/block.git bio_alloc-cleanup-part2

Gitweb:

    http://git.infradead.org/users/hch/block.git/shortlog/refs/heads/bio_alloc-cleanup-part2

Diffstat:
 Documentation/block/biodoc.rst   |    5 -
 block/bio-integrity.c            |    1 
 block/bio.c                      |  106 +++++++++++++-----------
 block/blk-crypto.c               |    1 
 block/blk-mq.c                   |    4 
 block/bounce.c                   |    3 
 drivers/block/drbd/drbd_req.c    |    5 -
 drivers/block/drbd/drbd_worker.c |    4 
 drivers/block/pktcdvd.c          |    4 
 drivers/md/bcache/request.c      |    6 -
 drivers/md/dm-cache-target.c     |   26 ++----
 drivers/md/dm-crypt.c            |   11 +-
 drivers/md/dm-zoned-target.c     |    3 
 drivers/md/dm.c                  |  166 +++++++++++++--------------------------
 drivers/md/md-faulty.c           |    4 
 drivers/md/md-multipath.c        |    4 
 drivers/md/md.c                  |    5 -
 drivers/md/raid1.c               |   34 +++----
 drivers/md/raid10.c              |   16 +--
 drivers/md/raid5.c               |    4 
 fs/btrfs/extent_io.c             |    4 
 include/linux/bio.h              |    6 -
 22 files changed, 183 insertions(+), 239 deletions(-)

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

end of thread, other threads:[~2022-02-04 14:43 UTC | newest]

Thread overview: 17+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-02-02 16:00 improve the bio cloning interface v2 Christoph Hellwig
2022-02-02 16:00 ` [PATCH 01/13] drbd: set ->bi_bdev in drbd_req_new Christoph Hellwig
2022-02-02 16:00 ` [PATCH 02/13] dm: add a clone_to_tio helper Christoph Hellwig
2022-02-02 16:00 ` [PATCH 03/13] dm: fold clone_bio into __clone_and_map_data_bio Christoph Hellwig
2022-02-02 16:01 ` [PATCH 04/13] dm: fold __send_duplicate_bios into __clone_and_map_simple_bio Christoph Hellwig
2022-02-02 16:01 ` [PATCH 05/13] dm: move cloning the bio into alloc_tio Christoph Hellwig
2022-02-02 16:01 ` [PATCH 06/13] dm: pass the bio instead of tio to __map_bio Christoph Hellwig
2022-02-02 16:01 ` [PATCH 07/13] dm: retun the clone bio from alloc_tio Christoph Hellwig
2022-02-02 18:33   ` Mike Snitzer
2022-02-02 16:01 ` [PATCH 08/13] dm: simplify the single bio fast path in __send_duplicate_bios Christoph Hellwig
2022-02-02 16:01 ` [PATCH 09/13] dm-cache: remove __remap_to_origin_clear_discard Christoph Hellwig
2022-02-02 16:01 ` [PATCH 10/13] block: clone crypto and integrity data in __bio_clone_fast Christoph Hellwig
2022-02-02 16:01 ` [PATCH 11/13] dm: use bio_clone_fast in alloc_io/alloc_tio Christoph Hellwig
2022-02-02 16:01 ` [PATCH 12/13] block: initialize the target bio in __bio_clone_fast Christoph Hellwig
2022-02-02 16:01 ` [PATCH 13/13] block: pass a block_device to bio_clone_fast Christoph Hellwig
2022-02-02 19:42 ` improve the bio cloning interface v2 Mike Snitzer
2022-02-04 14:43 ` Jens Axboe

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