Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp2616781pxb; Sat, 30 Jan 2021 08:22:42 -0800 (PST) X-Google-Smtp-Source: ABdhPJylNQPHhU0KfPgR9+JTDn3r5d3b/L8Fiylf6Lz4SIlWAbgaJjOzt7aF//SwvNu/6FxwYclX X-Received: by 2002:a17:906:ca0d:: with SMTP id jt13mr9397830ejb.170.1612023762181; Sat, 30 Jan 2021 08:22:42 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1612023762; cv=none; d=google.com; s=arc-20160816; b=gFRv1pONts+b7nXAESao9tHKWGFqpwRZNvhwTLtpsSPo455W05/XugnJ3LDtFfucC3 dnwN3p81umY8/VThZT/jxKlss91/152QHBopVd5G5r5qZmJV/t+0NvkaAW/Fq+97l4KT 48OJZdr3sCJhjrww8qcjUzfJF3sqiThkh7bN/vI5LZ7nzhibgIibtkVf0DI04MJ6QbU/ 6+ThjiLkpVXX/puSrjft3Y6Jk4wV5hojBK4OmQJQXZrJPstf6aTT4QvN2xjQSW1ZjLjC snZqcpalKtHDyBbL4+EJ3qJMg/kG2SjmYWyYNY8DPtVkiKfYcQ/9QDKmsJU/qk5Aeu4l OQRA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:reply-to:cc:from:to :dkim-signature:date; bh=SqOOfzeH0noXKgcwnW/E6N5QTvdiF5329lwzLQGnSBA=; b=VeeRZYipw3u65HxwvdxfZAnLsj4AkalGD0Y9lSSmYlKSYdiZbPOflfaXU9YywxexiD 8T7ciV6CbEtLMUTnidI3ZStOl6iKBY8UWvzameJH5LePSz6pYp5rdVr6bGYjEQ4qgQ3G pJ5c25BfZhbz7YzyU+AhD0joPnV1H8pQUoMm28PVxhrFSuCUHc+MUI+vsd/nv32OGpn/ 99t2hHEhTt6OVUOkTSqL6qRHw61xqSWzMszlRnpR+pbzAJSjufMRvQP9FhKAjwBTvd3H c+lcohpsBJh9odJvhWi66ieI0jORxjnOazlgB9j3oaoFuj2rCI0EHn1XXG0ZjdNlNNCb Obew== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@pm.me header.s=protonmail header.b=QNesXZCq; 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; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=pm.me Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id q3si7491796edn.37.2021.01.30.08.22.17; Sat, 30 Jan 2021 08:22:42 -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; dkim=pass header.i=@pm.me header.s=protonmail header.b=QNesXZCq; 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; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=pm.me Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232160AbhA3QUm (ORCPT + 99 others); Sat, 30 Jan 2021 11:20:42 -0500 Received: from mail-40136.protonmail.ch ([185.70.40.136]:32706 "EHLO mail-40136.protonmail.ch" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232240AbhA3Pny (ORCPT ); Sat, 30 Jan 2021 10:43:54 -0500 Date: Sat, 30 Jan 2021 15:42:29 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=pm.me; s=protonmail; t=1612021352; bh=SqOOfzeH0noXKgcwnW/E6N5QTvdiF5329lwzLQGnSBA=; h=Date:To:From:Cc:Reply-To:Subject:In-Reply-To:References:From; b=QNesXZCqMsxg9WWq30zTsSxoLyYfcPmwRs7aX304JT8WeHNT2iGeKEibhU43V9vgT OcUNJmqqlVZvquPt6J7MLkmBaKhnUDCH23CFKrtXuP8CIQAzp8bYEWC7Ml27/Xc8Kv f1C/khyFadsGNsXhEO1dzJJ1HgqXdA5r7yJfx+tsRajwQc82BlDqw5ZjlanwRvD1p/ Z6/yyOW9dpxawki7sSDlRjQ8u8VXcF1HC/BOx5w/k5QhQxYz3scGwOIxNqXL+3s/5C rCuWxQuQ5OT/DcRqoNddGAAnHcb6UjvmotgX1eW2NpSx7FLK/lnTTT8mb84wIIyEYx YpUaky0ym1igA== To: Jakub Kicinski From: Alexander Lobakin Cc: Alexander Lobakin , "David S. Miller" , David Rientjes , Yisen Zhuang , Salil Mehta , Jesse Brandeburg , Tony Nguyen , Saeed Mahameed , Leon Romanovsky , Andrew Morton , Jesper Dangaard Brouer , Ilias Apalodimas , Jonathan Lemon , Willem de Bruijn , Randy Dunlap , Pablo Neira Ayuso , Dexuan Cui , Jakub Sitnicki , Marco Elver , Paolo Abeni , netdev@vger.kernel.org, linux-kernel@vger.kernel.org, intel-wired-lan@lists.osuosl.org, linux-rdma@vger.kernel.org, linux-mm@kvack.org Reply-To: Alexander Lobakin Subject: Re: [PATCH v2 net-next 3/4] net: introduce common dev_page_is_reserved() Message-ID: <20210130154149.8107-1-alobakin@pm.me> In-Reply-To: <20210129183907.2ae5ca3d@kicinski-fedora-pc1c0hjn.dhcp.thefacebook.com> References: <20210127201031.98544-1-alobakin@pm.me> <20210127201031.98544-4-alobakin@pm.me> <20210129183907.2ae5ca3d@kicinski-fedora-pc1c0hjn.dhcp.thefacebook.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-1.2 required=10.0 tests=ALL_TRUSTED,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF shortcircuit=no autolearn=disabled version=3.4.4 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on mailout.protonmail.ch Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Jakub Kicinski Date: Fri, 29 Jan 2021 18:39:07 -0800 > On Wed, 27 Jan 2021 20:11:23 +0000 Alexander Lobakin wrote: > > + * dev_page_is_reserved - check whether a page can be reused for netwo= rk Rx > > + * @page: the page to test > > + * > > + * A page shouldn't be considered for reusing/recycling if it was allo= cated > > + * under memory pressure or at a distant memory node. > > + * > > + * Returns true if this page should be returned to page allocator, fal= se > > + * otherwise. > > + */ > > +static inline bool dev_page_is_reserved(const struct page *page) >=20 > Am I the only one who feels like "reusable" is a better term than > "reserved". I thought about it, but this will need to inverse the conditions in most of the drivers. I decided to keep it as it is. I can redo if "reusable" is preferred. Regarding "no objectives to take patch 1 through net-next": patches 2-3 depend on it, so I can't put it in a separate series. Thanks, Al