Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp7550606rwi; Mon, 24 Oct 2022 16:37:55 -0700 (PDT) X-Google-Smtp-Source: AMsMyM6dN4Cy1P55WqySqyZxyTaBy3G90+PVsRzgw9LHr5vm0tNW3oI2eyJg1DPBfgF+GHHiG2Zx X-Received: by 2002:a17:907:a422:b0:7a6:c4cb:dd42 with SMTP id sg34-20020a170907a42200b007a6c4cbdd42mr7679740ejc.735.1666654674865; Mon, 24 Oct 2022 16:37:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666654674; cv=none; d=google.com; s=arc-20160816; b=UOY+f2ZOLz43ezfwqo9t9Wa9JMCyJvAchyAJSqJOI4whSw5bIXjkP1lLMWBZV3wU7A q0eymV+vGoXj7/7wj4uKZG8/QnlQk9p5uEMzI5hUTP1XZNI+ob5hDLOMztJbqDzUIII7 vTC+gi7V0iri938y1+mKuiHJ77YrJsWOYFvK9S3lgcRU9Gjbtek8/at9fiLr4g71Q+JC 7kObsnToq/11FUo5Vg69QfbXLQNSw0hN6uZZfXw6Z7K4knXfq/uYqRMHmC8mPZIrafPf ooytmopXyLMZ6Lj8hd9LexNHw9uY0qFmLXEtleV4I9+hrrxNArXT1dbL2c0MVSzB6BwG gGRA== 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=gHdxohgx99EHtkBH+aYtTknDrbPtrwJAuaizmc0RZRg=; b=QpvDy1+7H431ako8XqDzDDDwITYEQ0wVkpoGnrteCgx43dpbOY4qtJjBI8Ah29DUhb XQZLDfwfbKU6RjVbqzaD/JEtP0QiXmUE3vlFW35E7jpzuPIGhccPNv+D2Z1Mz8nTAWTW lSoTEnYBxPWhX3YEbW4313MhKFfAI+VAgnKQaX7t5MNneb70+AP8d3NMt94VDYgMht/O XD5KdIoHRnrH5lVFru/72lxauC76NRS49XuLUZuVoSAm+llNAtQy3tgjtXUL50u4fgfh wxXBAnHG9vyQUOfdsQP14DMyMM0N4RARjKd1tBo+9vu0S0PyXcwMABvnNQOAySbQ60O+ gvxg== 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id xg11-20020a170907320b00b0079b8cce1170si1145851ejb.950.2022.10.24.16.37.30; Mon, 24 Oct 2022 16:37:54 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231945AbiJXWpj (ORCPT + 99 others); Mon, 24 Oct 2022 18:45:39 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42768 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230188AbiJXWpE (ORCPT ); Mon, 24 Oct 2022 18:45:04 -0400 Received: from verein.lst.de (verein.lst.de [213.95.11.211]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EB7828B2CF; Mon, 24 Oct 2022 14:07:33 -0700 (PDT) Received: by verein.lst.de (Postfix, from userid 2407) id 87F2B68B05; Mon, 24 Oct 2022 17:00:12 +0200 (CEST) Date: Mon, 24 Oct 2022 17:00:11 +0200 From: Christoph Hellwig To: Logan Gunthorpe Cc: linux-kernel@vger.kernel.org, linux-nvme@lists.infradead.org, linux-block@vger.kernel.org, linux-pci@vger.kernel.org, linux-mm@kvack.org, Christoph Hellwig , Greg Kroah-Hartman , Dan Williams , Jason Gunthorpe , Christian =?iso-8859-1?Q?K=F6nig?= , John Hubbard , Don Dutile , Matthew Wilcox , Daniel Vetter , Minturn Dave B , Jason Ekstrand , Dave Hansen , Xiong Jianxin , Bjorn Helgaas , Ira Weiny , Robin Murphy , Martin Oliveira , Chaitanya Kulkarni , Ralph Campbell , Stephen Bates Subject: Re: [PATCH v11 1/9] mm: allow multiple error returns in try_grab_page() Message-ID: <20221024150011.GA26338@lst.de> References: <20221021174116.7200-1-logang@deltatee.com> <20221021174116.7200-2-logang@deltatee.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20221021174116.7200-2-logang@deltatee.com> User-Agent: Mutt/1.5.17 (2007-11-01) X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_NONE, SPF_NONE autolearn=ham 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 Fri, Oct 21, 2022 at 11:41:08AM -0600, Logan Gunthorpe wrote: > In order to add checks for P2PDMA memory into try_grab_page(), expand > the error return from a bool to an int/error code. Update all the > callsites handle change in usage. > > Also remove the WARN_ON_ONCE() call at the callsites seeing there > already is a WARN_ON_ONCE() inside the function if it fails. > > Signed-off-by: Logan Gunthorpe Looks good: Reviewed-by: Christoph Hellwig