Received: by 2002:a05:6a10:6d10:0:0:0:0 with SMTP id gq16csp2653141pxb; Mon, 18 Apr 2022 05:37:58 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzg/Cy0nDpdrXxFj8c9a9S9wWmbCMeAIGGScm8uj9K5og1JEvc+CrRvJFhcBKEz3KR4iZXP X-Received: by 2002:a17:902:e94f:b0:14f:1636:c8a8 with SMTP id b15-20020a170902e94f00b0014f1636c8a8mr10746568pll.130.1650285477871; Mon, 18 Apr 2022 05:37:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1650285477; cv=none; d=google.com; s=arc-20160816; b=lBlWntoMU7jijXzlvyfeoxxd+DE6mqGic3zaqoqwnx6S/Ox50u3q3ciAz19en4FX0y X78B1rgGGWZc2R5dZ2W1uytDb05hoCXzl7sf72/yOad/Y3eRFLV8mY7gTvTL69IDbw59 5bxuDpPMtCClqFqhorxVFCkihWin0jPKR79kCucBE4f3bDTjGMyl4do2yqmQQS3fr38s 5jNkREZzwQd9+y1qbaf+FbrFxEu8SM38F/k4gSkg8k03pkFCO1ZJKeRQlFRmpcpk2yYf MgUfsar3B5fiBxbu1k/lwasEgT4TkNBV74VXjYAgeqPyhMAWeP5qCVpEBISNIiAz1nc3 c5bw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version:date :message-id:subject:references:in-reply-to:cc:to:from:dkim-signature; bh=KJfLbwgngO3OiGtIZhQTnGZUpV/6KTf4a6VxaVn0jHA=; b=v/QhxoS+tTuoFgGYMvQTcx/3KFsPt4cELVb3Bb5V9RO8mu0rocMC3kZ5lQFe9oZlxs tFG9O0drwMz9bKawsOiTI44SCaKSAXktrtbNkA9aaoSphg/SVt/LuN8UKiIoFG/yYwTi gs/Gtno4fTebGV0vWzpTP2et7Uk5Bc+oTvQHSHEWLeop1sPIJZ+QArs0MtJwy5CThjmb 2zHFBeMVc/ALKI1LJ5XoiqMJJyv0Rj3G4O0lyUJK1lFYZkQVZKgNaPzas8wBmC2w4San CXHvcSu0U31O7A//dDLeoxj+AWYLGjvQ1Ii1QF1hHX8LNrV6rMK7C1TIh9VVdbkijnsf Hm0w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel-dk.20210112.gappssmtp.com header.s=20210112 header.b=fUiWEs30; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id b8-20020a056a00114800b00508360cea5asi9745490pfm.295.2022.04.18.05.37.41; Mon, 18 Apr 2022 05:37:57 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel-dk.20210112.gappssmtp.com header.s=20210112 header.b=fUiWEs30; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232905AbiDRBgQ (ORCPT + 99 others); Sun, 17 Apr 2022 21:36:16 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45806 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235617AbiDRBfv (ORCPT ); Sun, 17 Apr 2022 21:35:51 -0400 Received: from mail-pj1-x1031.google.com (mail-pj1-x1031.google.com [IPv6:2607:f8b0:4864:20::1031]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 013651835C for ; Sun, 17 Apr 2022 18:32:48 -0700 (PDT) Received: by mail-pj1-x1031.google.com with SMTP id n33-20020a17090a5aa400b001d28f5ee3f9so1282594pji.4 for ; Sun, 17 Apr 2022 18:32:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel-dk.20210112.gappssmtp.com; s=20210112; h=from:to:cc:in-reply-to:references:subject:message-id:date :mime-version:content-transfer-encoding; bh=KJfLbwgngO3OiGtIZhQTnGZUpV/6KTf4a6VxaVn0jHA=; b=fUiWEs30cpVdTgnRTDuIunTyD3sFwyNXIMjD2xrDFFhby9PvozDytSBEVj5TLA3enQ WJg5PUCFZhavWnDTUSjcqiWdtbmRSnwGPVoJqfidCHXMsRiC/8miYakfaAZVFsJvX3bS 5rW4pfgKMUPRH4xvCV8Ayqx16fXXcBpmLJ8ouv1MDWzBzzeX6sTvregS6+W7imKu2o9s JkpStrFdIm2UGzcq7WrYJf9XXlMNLf1O1L3ohQXq8EaSjdqThCTtF7dsfLFbH0M279GX 9j/pkX//BLTGvZs/WRmTotqH1MNj+h8ET2s+rsNWcTHLVYqXbzx2Z0wD2+tsX+cqIWVh IhOA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:in-reply-to:references:subject :message-id:date:mime-version:content-transfer-encoding; bh=KJfLbwgngO3OiGtIZhQTnGZUpV/6KTf4a6VxaVn0jHA=; b=7bs5kh85CGxPWKXbjcgw47ogasHn0pdLrTJwVJDpNl8dFtFfTiqy/c8YzYcjYrUIIT W/Y2Q+Hibc+VZVMyePBphRLBWzhSU310se+GXu9QekybBqE4IoYUnx20feCu2fHe6HOb zePjZGv1O4Wy9y+y1FBf59OmqwaRtMFZlkpTHMggyr4gg6mTyAM5Wp868gTCVsbmGxqE yTNv6EieimzSaSYv5/A/Qxey/dVrjaRozRNqKVhSivI+8Jdsy1fvYRGTPX6ganuZpkeN pR9/2y+MzNXQCN8lWtytZYm/2nSf2WDQi06K9hVoWwr2TzxMIcjokwrfLxbzvKoYoaGE LJMA== X-Gm-Message-State: AOAM533rA12HEHYJnJ3jqrb4bTlY8tbsC0HsSKnWqHy0GhapJ7A+9x4e xQdI+BnKBQA+x+Y4FKMb5qHK9w== X-Received: by 2002:a17:903:2406:b0:158:f6f0:6c44 with SMTP id e6-20020a170903240600b00158f6f06c44mr4676524plo.88.1650245568439; Sun, 17 Apr 2022 18:32:48 -0700 (PDT) Received: from [127.0.1.1] ([198.8.77.157]) by smtp.gmail.com with ESMTPSA id g15-20020a63be4f000000b0039934531e95sm10726611pgo.18.2022.04.17.18.32.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 17 Apr 2022 18:32:47 -0700 (PDT) From: Jens Axboe To: Christoph Hellwig Cc: linux-block@vger.kernel.org, phillip@squashfs.org.uk, target-devel@vger.kernel.org, colyli@suse.de, linux-btrfs@vger.kernel.org, martin.petersen@oracle.com, linux-raid@vger.kernel.org, dsterba@suse.com, josef@toxicpanda.com, song@kernel.org, dm-devel@redhat.com, snitzer@redhat.com, linux-bcache@vger.kernel.org, linux-kernel@vger.kernel.org In-Reply-To: <20220406061228.410163-1-hch@lst.de> References: <20220406061228.410163-1-hch@lst.de> Subject: Re: cleanup bio_kmalloc v3 Message-Id: <165024556441.258485.6980891929042026868.b4-ty@kernel.dk> Date: Sun, 17 Apr 2022 19:32:44 -0600 MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 6 Apr 2022 08:12:23 +0200, Christoph Hellwig wrote: > this series finishes off the bio allocation interface cleanups by dealing > with the weirdest member of the famility. bio_kmalloc combines a kmalloc > for the bio and bio_vecs with a hidden bio_init call and magic cleanup > semantics. > > This series moves a few callers away from bio_kmalloc and then turns > bio_kmalloc into a simple wrapper for a slab allocation of a bio and the > inline biovecs. The callers need to manually call bio_init instead with > all that entails and the magic that turns bio_put into a kfree goes away > as well, allowing for a proper debug check in bio_put that catches > accidental use on a bio_init()ed bio. > > [...] Applied, thanks! [1/5] btrfs: simplify ->flush_bio handling commit: f9e69aa9ccd7e51c47b147e45e03987ea0ef9aa3 [2/5] squashfs: always use bio_kmalloc in squashfs_bio_read commit: 46a2d4ccc49903923506685a8368ca88312bbdc9 [3/5] target/pscsi: remove pscsi_get_bio commit: 7655db80932d95f501a0811544d9520ec720e38d [4/5] block: turn bio_kmalloc into a simple kmalloc wrapper commit: 066ff571011d8416e903d3d4f1f41e0b5eb91e1d [5/5] pktcdvd: stop using bio_reset commit: 852ad96cb03621f7995764b4b31cbff9801d8bcd Best regards, -- Jens Axboe