Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 4F26BC433F5 for ; Thu, 27 Jan 2022 06:35:59 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229650AbiA0Gf5 (ORCPT ); Thu, 27 Jan 2022 01:35:57 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51448 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236794AbiA0Gfz (ORCPT ); Thu, 27 Jan 2022 01:35:55 -0500 Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:e::133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8BE3DC06173B for ; Wed, 26 Jan 2022 22:35:54 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=Content-Transfer-Encoding: MIME-Version:Message-Id:Date:Subject:Cc:To:From:Sender:Reply-To:Content-Type: Content-ID:Content-Description:In-Reply-To:References; bh=VwOfDxAxTyUmpkxo5WFIProZUqoG2UZpSn/4hB/cnvg=; b=oxyAN7Cx41TWd2eVVqsUpqY1VB AvzUKuSJS63qWit1AlGi9ipNRnChpYeVrDsB/AP/65j3C1hT3GKXqFuQgBFxQzLpjBAT13bwfEXZc idMbjwxo+p2UoTHhTVJ7NgKg32vVIWiAyZ8bzdlus13MrBogPHD0boXK6udu3RJ6HhSeI3sxJmRN0 UT6mIr4yAH2i2smEm8Kho2Mo1oWAKzVDJ5HbPep5lu/2zCbGiaPz85mzgGY5MbRB3lcEZjJ2TaKnk e6ZMFo9OBEE5IJQylSv+cG/HuZhHmgtDrHEH4cM4xBO7Y/lKJzBaUYXfpekAZ8A4wya43FVown6zE R5kSRxHA==; Received: from 213-225-10-69.nat.highway.a1.net ([213.225.10.69] helo=localhost) by bombadil.infradead.org with esmtpsa (Exim 4.94.2 #2 (Red Hat Linux)) id 1nCyNq-00EY07-23; Thu, 27 Jan 2022 06:35:50 +0000 From: Christoph Hellwig To: Jens Axboe Cc: Pavel Begunkov , Mike Snitzer , Philipp Reisner , Lars Ellenberg , linux-block@vger.kernel.org, dm-devel@redhat.com, drbd-dev@lists.linbit.com Subject: improve the bio cloning interface Date: Thu, 27 Jan 2022 07:35:32 +0100 Message-Id: <20220127063546.1314111-1-hch@lst.de> X-Mailer: git-send-email 2.30.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-SRS-Rewrite: SMTP reverse-path rewritten from by bombadil.infradead.org. See http://www.infradead.org/rpr.html Precedence: bulk List-ID: X-Mailing-List: linux-block@vger.kernel.org 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. 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 | 167 ++++++++++++++------------------------- 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, 185 insertions(+), 238 deletions(-)