Received: by 2002:ac0:a582:0:0:0:0:0 with SMTP id m2-v6csp2806041imm; Wed, 3 Oct 2018 09:24:56 -0700 (PDT) X-Google-Smtp-Source: ACcGV61Ssv2FA+7LWhcOd7fLydnKRroWeaWr553SZ4GaIxAnGpobF7WQrgGh1LLwgv00uq1OTPTu X-Received: by 2002:a63:4c4e:: with SMTP id m14-v6mr2034889pgl.173.1538583896711; Wed, 03 Oct 2018 09:24:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1538583896; cv=none; d=google.com; s=arc-20160816; b=VVkefVMrCh8JBZxsYAnO7lpxp6Ls7Pqn1rawMSeUPWch8EQBQwoWmBEWaOiy9HWSzd HRV8sfG2KRFr6LY4xQ8pUyk8TMpJlk9qLkRE9dd2FXyw10WzG/j20jgP8DTltvova/3z iBw712NspJ0BaFgLQh2IKLr8zUr9+ZVjB/f4ch68Qoc5/GNL0+MFbbbV19CHIjqeoxVc UfUakeN7p9Llu1e4d90rh0syFARMzn7s9+kUYVA+ys8V4HsCar+j/mnvbcdnzrOANik3 Vjo3kuJBLaDksXR2u+/ZGkJ30X44DGET85YXeg3igvwOAnaNqq/P+K+fgtodsgGusNuA gvNw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=Jp3bIJV49NkNRMmfQqF1e1lXocZm6Ty3VAfSU3qYe/8=; b=KlfL3B/rO1tzaqlT406IKMTw39k7YRboH9yBgR778ollA7s4whocmo5Y5r2bEFYw84 Or2dmtkLeR3pIZ8i9a41LkaDCYqH03HnH6JInvHKZ9CWMttC8Y/ELp9QvsqZ0eKsTEk5 u7moiPxqIy4oXJfG5MLak+4qBSJiiP9V0gYjvITtNGVFLipunPrZPGsC1vBCmz10jhTf sBwRxohdZ4aXgGXUdJA8xHUOFo2l6jnxnlg4n+w0YBxf4ffRNXFFvF5vDsWXHPwRijEq a1mITgBoL75l8YBli1AQC/uyqGebZ23m2TW7w8QTC7vQWE7JwAC7zEgiNnMX2meHgjTR efqg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id t7-v6si1966599plq.32.2018.10.03.09.24.29; Wed, 03 Oct 2018 09:24:56 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727256AbeJCXLo (ORCPT + 99 others); Wed, 3 Oct 2018 19:11:44 -0400 Received: from mx2.suse.de ([195.135.220.15]:60620 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726811AbeJCXLo (ORCPT ); Wed, 3 Oct 2018 19:11:44 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay1.suse.de (unknown [195.135.220.254]) by mx1.suse.de (Postfix) with ESMTP id E3DE9AA71; Wed, 3 Oct 2018 16:22:37 +0000 (UTC) Received: by quack2.suse.cz (Postfix, from userid 1000) id B34581E3613; Wed, 3 Oct 2018 18:22:37 +0200 (CEST) Date: Wed, 3 Oct 2018 18:22:37 +0200 From: Jan Kara To: john.hubbard@gmail.com Cc: Matthew Wilcox , Michal Hocko , Christopher Lameter , Jason Gunthorpe , Dan Williams , Jan Kara , Al Viro , linux-mm@kvack.org, LKML , linux-rdma , linux-fsdevel@vger.kernel.org, John Hubbard Subject: Re: [PATCH 2/4] mm: introduce put_user_page(), placeholder version Message-ID: <20181003162237.GH24030@quack2.suse.cz> References: <20180928053949.5381-1-jhubbard@nvidia.com> <20180928053949.5381-4-jhubbard@nvidia.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180928053949.5381-4-jhubbard@nvidia.com> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu 27-09-18 22:39:48, john.hubbard@gmail.com wrote: > From: John Hubbard > > Introduces put_user_page(), which simply calls put_page(). > This provides a way to update all get_user_pages*() callers, > so that they call put_user_page(), instead of put_page(). > > Also adds release_user_pages(), a drop-in replacement for > release_pages(). This is intended to be easily grep-able, > for later performance improvements, since release_user_pages > is not batched like release_pages() is, and is significantly > slower. A small nit but can we maybe call this put_user_pages() for symmetry with put_user_page()? I don't really care too much but it would look natural to me. Honza -- Jan Kara SUSE Labs, CR