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 X-Spam-Level: X-Spam-Status: No, score=-5.2 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS, USER_AGENT_SANE_1 autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id EFCD5C433DB for ; Tue, 23 Feb 2021 15:14:29 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id AE99964E58 for ; Tue, 23 Feb 2021 15:14:29 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233113AbhBWPOZ (ORCPT ); Tue, 23 Feb 2021 10:14:25 -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.