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 A390AC433F5 for ; Wed, 13 Apr 2022 17:04:35 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230496AbiDMRGz (ORCPT ); Wed, 13 Apr 2022 13:06:55 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46398 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229538AbiDMRGu (ORCPT ); Wed, 13 Apr 2022 13:06:50 -0400 Received: from mail-qt1-f182.google.com (mail-qt1-f182.google.com [209.85.160.182]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4377D2E9E2 for ; Wed, 13 Apr 2022 10:04:28 -0700 (PDT) Received: by mail-qt1-f182.google.com with SMTP id z15so1790315qtj.13 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=eD46y7DSuAwpZt2kCawtVnAJ5hjr8uaJ3IOzsJ58DMvgBTOiqOB8Sonf6uUc/0Q57C /uHfZKftQHmoCHB0Md9ZQcbFo+Ndoio7UGECJozuvg+Rhu+dY3VBjQPvYnWsMY1FFrDf xaCdU9vMQTRVa6q05dHvyhOZipFjnqilCTMeaPjwZOdYt3BZ0rbRxCY8au/KR9bIvb5s RZMtS4uGz6BSndUBvPyqbRIUpkBoMAFrYqvuzrdf+NC3Ommxv/XKExEDYMhSVb0vq+fM djrOe6Q12ToLJDqZOmfQFACEVYBk1yesVNARFOvDZ0Vvk7roQHbm8Tyb/JUCqLtbI/16 GxpQ== X-Gm-Message-State: AOAM531Oq1XaDt/kSNWCvtNXfGjyLDsl/EUj8/K4o9NAteJjHfeS1Fu8 piQpMY0fhiYeCdWj0qgvOMTC 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-kernel@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