Received: by 2002:a05:6a10:6d10:0:0:0:0 with SMTP id gq16csp1503740pxb; Thu, 14 Apr 2022 07:34:26 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx804o8xeTlo/QMjkKBxYKM7hV4oG3XXg+mI0zF2cqUnQ+yTkcW35GGwJNjI64IvcXuqkbB X-Received: by 2002:a50:d4d9:0:b0:41d:6ee0:80d with SMTP id e25-20020a50d4d9000000b0041d6ee0080dmr3281264edj.254.1649946866646; Thu, 14 Apr 2022 07:34:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1649946866; cv=none; d=google.com; s=arc-20160816; b=NrE4NXqV5yqW0hltd7K4zQ2d+TfMXK1NazlgSTlQh2oJ79ozclLaYJrDGg/RHn8LtE deA9eTrAfMZJANuJYdBf1lgk0vqxEQjLt401pbu6pV/8PFm/V/VpI2is+XsIYktNlJC1 EKiTZuMFWaapISHWBg6jY/Wm1EOdjP5pnA8q1ASWVNSvhvFE/qnZiqphKm0M7aPBi1Eu wJXAToaRBIi64coqy8JBJgdTOhFufPMUqe+G6eaSUMmHfgbMBLpIfUBTi+Y2MAeU4hit ycRryyYy6xr+rc/N8+Z4bHlQ/+rZ09uyI3EfUNUlQ3jTTo74HmHHPAjHO1+CoLI7qYUB +MDA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=1gkKYNxAVgG9gQQX5FWE9T2WbQK+aJhhHh5HXzZzRl0=; b=U2Y46swcoKTE21itc9uXwPvolV7F5+F+Dd+0mz4ujcC6B0hLkN/AIlTewagsK9Zx6Q GB3jQ9vD5D8ZorWs4/dMbXYwdOQZjv1id69hKNTo0L8mHb/FfSjA1BDOuw3oY70rXSPq a8KC07jwhq7i43t0D3ZDK9Iw5VEqCyEzNjtNa7eJ44VUmD4JZJyEEx2u/yYdA5Ejpjy2 qsEYuhKqOZbfvl4sZrLKPkDxelflIUAg8kvqwijfQDCDqIZlh4TCk6uzcdbl14sCk40W oJykcls5jOBJA7KPVgaySbrObMcRjfn4uRe8GzeFiAIl93RUOT9UydaCmEZMMawkFmjR hsUg== ARC-Authentication-Results: i=1; mx.google.com; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id s21-20020a1709064d9500b006e874f46e54si2135673eju.49.2022.04.14.07.33.55; Thu, 14 Apr 2022 07:34:26 -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; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231812AbiDMRGy (ORCPT + 99 others); Wed, 13 Apr 2022 13:06:54 -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-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> X-Spam-Status: No, score=-1.7 required=5.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL,SPF_HELO_NONE,SPF_NONE,T_SCC_BODY_TEXT_LINE autolearn=no 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, 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