From mboxrd@z Thu Jan 1 00:00:00 1970 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 C2688C433EF for ; Wed, 13 Apr 2022 17:04:34 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237192AbiDMRGw (ORCPT ); Wed, 13 Apr 2022 13:06:52 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46394 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230015AbiDMRGu (ORCPT ); Wed, 13 Apr 2022 13:06:50 -0400 Received: from mail-qt1-f172.google.com (mail-qt1-f172.google.com [209.85.160.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4360E2BB2F for ; Wed, 13 Apr 2022 10:04:28 -0700 (PDT) Received: by mail-qt1-f172.google.com with SMTP id ay4so1800385qtb.11 for ; Wed, 13 Apr 2022 10:04:28 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=1gkKYNxAVgG9gQQX5FWE9T2WbQK+aJhhHh5HXzZzRl0=; b=r+CpC/Rypmu/zuw0yPGRz+f4TAEwq+EV3gnTOtnc/FelR160KnPdNxZgzExQ9dpEuN J9qLd9SLblLEHDtF2un0zI1sbv5ZYcCMWEkHqb01IN/r2Fq+PMZxs6HD0GvV1F9P7rqp BjxOJbD3BWgOqO7CkBr7bvT2o+MxYd2Sr360DgPqlMQ6rAdJ6LCGRBsVxrI/tTY2sIIF ErnWpi6hEtHKUmRy3wgJiak7cRiPbq7drJT/UDBqN+QCiCt46ZLrBsk6La2eZVDG5+TW cA7SDMoZ3dam+0T+gxsfQ27n2M0pKqYmYHSGcc/qYJuQe6AlEr15mnVsuE1ku6ipBf7Q FVHg== X-Gm-Message-State: AOAM53330vEFaehPaRNT2HodbULb+LfgOxDNIwBJLAKpu7qlbYNhfhLh XPr2tuuHVU9VwzcPuVYZyrZq X-Google-Smtp-Source: ABdhPJzk8Hsy6b4fFdojSz0Z/fwMjicI2vghSEfVW7+AE/QcDDdQw502GSidyJJNTGoVWuUmwvp37w== X-Received: by 2002:ac8:5e4e:0:b0:2e2:2bad:47b1 with SMTP id i14-20020ac85e4e000000b002e22bad47b1mr7781053qtx.493.1649869467355; Wed, 13 Apr 2022 10:04:27 -0700 (PDT) Received: from localhost (pool-68-160-176-52.bstnma.fios.verizon.net. [68.160.176.52]) by smtp.gmail.com with ESMTPSA id a23-20020a05620a103700b00699d49c511dsm16089900qkk.104.2022.04.13.10.04.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 13 Apr 2022 10:04:26 -0700 (PDT) Date: Wed, 13 Apr 2022 13:04:25 -0400 From: Mike Snitzer To: Christoph Hellwig Cc: Jens Axboe , Coly Li , Song Liu , "Martin K. Petersen" , Josef Bacik , David Sterba , Phillip Lougher , linux-block@vger.kernel.org, dm-devel@redhat.com, linux-kernel@vger.kernel.org, linux-bcache@vger.kernel.org, linux-raid@vger.kernel.org, target-devel@vger.kernel.org, linux-btrfs@vger.kernel.org Subject: Re: [PATCH 4/5] block: turn bio_kmalloc into a simple kmalloc wrapper Message-ID: References: <20220406061228.410163-1-hch@lst.de> <20220406061228.410163-5-hch@lst.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220406061228.410163-5-hch@lst.de> Precedence: bulk List-ID: X-Mailing-List: linux-raid@vger.kernel.org On Wed, Apr 06 2022 at 2:12P -0400, Christoph Hellwig wrote: > Remove the magic autofree semantics and require the callers to explicitly > call bio_init to initialize the bio. > > This allows bio_free to catch accidental bio_put calls on bio_init()ed > bios as well. > > Signed-off-by: Christoph Hellwig Acked-by: Mike Snitzer