Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp2445851pxb; Tue, 23 Feb 2021 07:16:36 -0800 (PST) X-Google-Smtp-Source: ABdhPJx3AMZ9RbZwRHY5xL5HKSVsGYnJhnd8V7bCLfJeu1WbId3+UIBv/pwYoe2RowtH94boxmMh X-Received: by 2002:a17:906:34c3:: with SMTP id h3mr26624572ejb.132.1614093395826; Tue, 23 Feb 2021 07:16:35 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1614093395; cv=none; d=google.com; s=arc-20160816; b=gzRAgGOjx0LJj9f4E0hAmDyAHShlgPm5QvU/VP2AO0iU56hFNgEjv7GnYOlgJzxmUS 17Ovr7M9eQTl5eK+CTKWTIxOv9CEHjnQzZaOOk24gmNh/5pSvgZhzMDUZYOizr34gcvV YXSerVAqhxZWNgydg8XAyDnQ12XZvQ3qSQ4RqB+w3BzREXyXZ+7sWpg5RJ0ESmbT1UMG 9lResZA9SaVBt8zYv+WgIEfnS3JZI1Ch5Dc5Gi3575RrEfJhRDTdeU9f6DvsHLURBMSx 37AWlepnsEVHr+qfvw8LOgKQf/3y2Fc9EeRYJWhXVm3YH0k/KGqul4Zn4U22fr+2lY/t asdw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=+uZ+t3EuI2qyE8jWt1F9HGuL6G3+RFa5EgXLIuYmgMg=; b=EL8PHhN39vPkgV08JJzhr46nyCKKur9hJ9byHIevEJYuEss2N5fcaFSIcFZgwMy/yg o6MuC6TZFEtJvmtiFHekobYL5HGjw74a1Lh1bQu29hED0QJiVBcjC5warYxnImMgKaQA wzmGQmBJMtt6OFi0U3p9NEC+AbB+zzlB2S+HHOtvnRjFxCaXaG0gsZ9/5gPzuEmmnfWs exXy9PXaLkEcmDBAst3fyu1Uq0RZ70zcIJ+J/aWBl6hwWxYsDcpqY70iniK5z7gm1GSS /Hhx5uedC8YRyLKzwKcfZ3sYBkhUXMWoRA6FtWR9ytbIcuznvccAWvDBbmFWQ/OYFT4q wpkA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id x18si14199179ejo.233.2021.02.23.07.16.11; Tue, 23 Feb 2021 07:16:35 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233139AbhBWPOS (ORCPT + 99 others); Tue, 23 Feb 2021 10:14:18 -0500 Received: from verein.lst.de ([213.95.11.211]:34207 "EHLO verein.lst.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232775AbhBWPNS (ORCPT ); Tue, 23 Feb 2021 10:13:18 -0500 Received: by verein.lst.de (Postfix, from userid 2407) id E5A9168D0A; Tue, 23 Feb 2021 16:12:33 +0100 (CET) Date: Tue, 23 Feb 2021 16:12:33 +0100 From: Christoph Hellwig To: Chaitanya Kulkarni Cc: Christoph Hellwig , Jens Axboe , David Anderson , Alistair Delva , Todd Kjos , Amit Pundir , YongQin Liu , lkml , "linux-block@vger.kernel.org" Subject: Re: [REGRESSION] "split bio_kmalloc from bio_alloc_bioset" causing crash shortly after bootup Message-ID: <20210223151233.GA19143@lst.de> References: <20210223071040.GB16980@lst.de> <20210223150852.GA17662@lst.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210223150852.GA17662@lst.de> User-Agent: Mutt/1.5.17 (2007-11-01) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Feb 23, 2021 at 04:08:52PM +0100, Christoph Hellwig wrote: > On Tue, Feb 23, 2021 at 07:37:52AM +0000, Chaitanya Kulkarni wrote: > > On 2/22/21 23:10, Christoph Hellwig wrote: > > > On Tue, Feb 23, 2021 at 03:51:23AM +0000, Chaitanya Kulkarni wrote: > > >> Looking at the other call sites do we need something like following ? > > >> Since __blk_queue_bounce() passes the NULL for the passthru case as a > > >> bio_set value ? > > > Well, that is a somewhat odd calling convention. What about the patch below > > > instead? That being we really need to kill this bouncing code off.. > > I assume you are sending this patch, let me know otherwise. > > If you do please add, looks good. > > I'll split the gfp_mask cleanup out, and will submit it with your as > the author if that is ok. I'll need a signoff, though. Actually, I ended up reworking it once more as there is no point for the parameter either.