Received: by 2002:a25:7ec1:0:0:0:0:0 with SMTP id z184csp721170ybc; Tue, 19 Nov 2019 08:13:00 -0800 (PST) X-Google-Smtp-Source: APXvYqxhj2kfu9Nnc07WAZICADrWIgmTrs7oYQX8/nOhiaoB/J+kTioC6/U+ZH1UBrFTOLpaPA3P X-Received: by 2002:a5d:4ecd:: with SMTP id s13mr25749780wrv.216.1574179979619; Tue, 19 Nov 2019 08:12:59 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1574179979; cv=none; d=google.com; s=arc-20160816; b=XRd143nIO005H1h24ezdpXLUfkXEUwgpHXma6AJ0C//1dAYAXtSr6hR9lMHwiC/3PE /GGtwzjRlobG+WvLX+h6P79MY8IFClhTUAQy8KEnvrxxnIxHZoCN5zemdyz5Pbwwwgmy 8Q2b8T/LoGU01ir6Q+Xlxhdgv3fMOODmdNd5KWuxVnuqre/fktB1Cr4CkWDnghZl8YTf n2W+buKkPf/MepgZHOcr7nP1X9mu6KNDBQs+DhNMe+ihJTNNbQ56YxIqKPK6M05Ub9mw B+49Leto3Sqi6gIC7pZuNCFzxW4YXcIS8mlXX3jcWFy/cyH+YdZJWF1+jA3NR1Wy6i6V xalQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature; bh=yxTg9Jz6CUPbj7hb+zClDPA6shnTNr7Uh8vLjm12KTA=; b=rkw3HT+x3MnYnJErvUYTfa7yAUsW1SdY3AmpSOYyxHcbB43o1PIXzmTkGULzoXdWJT KJOzSLVPdluvEfDIzyu7ovk1mtz6rJkFvn34+n2a9o6l0YbwSykDFUuO8lfU4lyrUr0i Cg47/5kGpTvrL1RUNbn5XJoGK9vMf/sp4tke28RlK0Kij05THsS/s9A9+jAF5guWcYRL 1whwCij4O/Oy8FIz7gM/0E+2fll1TRTtfMcF0PRU6l4cPyRb7hfSekk7RMVTvdZRK1xY SKXnBZ924/nfG/zuo/2nZ2aSwXbA9Wqmd63OpkCLhf3Y++9OAFJtxs6OlFlqg8DbTy9n qc0A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel-dk.20150623.gappssmtp.com header.s=20150623 header.b=oGIJW8Hf; 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 w2si16813132edc.300.2019.11.19.08.12.33; Tue, 19 Nov 2019 08:12:59 -0800 (PST) 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; dkim=pass header.i=@kernel-dk.20150623.gappssmtp.com header.s=20150623 header.b=oGIJW8Hf; 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 S1728212AbfKSQLD (ORCPT + 99 others); Tue, 19 Nov 2019 11:11:03 -0500 Received: from mail-io1-f67.google.com ([209.85.166.67]:37470 "EHLO mail-io1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727910AbfKSQLA (ORCPT ); Tue, 19 Nov 2019 11:11:00 -0500 Received: by mail-io1-f67.google.com with SMTP id 1so23824654iou.4 for ; Tue, 19 Nov 2019 08:10:59 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel-dk.20150623.gappssmtp.com; s=20150623; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=yxTg9Jz6CUPbj7hb+zClDPA6shnTNr7Uh8vLjm12KTA=; b=oGIJW8HfkgkobB0o2Qa1NbNfnl9mEqSGpPEO2LkogyZvOuMJQ7TF55da86qlugqMCd 338Wge2YPFXsoEIf9RGDawq7jpCCeV3jwC0W058T6wHLBemhZJS3koszJqUTfQULDiaX 2B6RyRY6HS9AE+8hVENsQBKSpUdhkmyAKNXz0Nm/Cxj0QFJRN/CWS+DE/OAhOnYHg0xk tK1FlPGkzCpUU1kARsuIumFoSGAGKhbP5ourqDXhrP7e5xrJzr7bWyrrGYocI1tJI7bI UgAaDI7OLq1bomHv0lR8zAsfor6M3fEsHwxDtlUp7bVspKwb2e69Lw3GuCnkI9VLqTxF /QFQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=yxTg9Jz6CUPbj7hb+zClDPA6shnTNr7Uh8vLjm12KTA=; b=kJgyUSBc7KGG+PHe8WpoU9qpqOafw8+1jvyZN8dPfrLYHXs/2opN15Kum51K+wxkSj x1QvvJ0drw6CwYH45RF4m1qq2ddy+WqnFKLcXgJSSlt9ovOS7Dx7+v1lQWdISIWuv//0 dIogLGk/13h4Ko3qVBNlsZYNBLWuzpFjyAHbfHzbjzZdDn7Rdb82CHa0L11iEpltUKtL fSGXYxTyuVu7ahpzAkDIzWJ6iugOdbPUjNol3CWA+jDcLlRys+jvP9UCEIzfk35o2qfd OyXFJAiIunpyk5DfuYHIfSPrMJmRC0N5+ReJmPf4QNa1trmV95nccxjHx9GsmPpj6ahB g0rw== X-Gm-Message-State: APjAAAU0+YoE6tJILC9NQjB/1HuS55xy965SXnvuWmI3Dp18sRrjdYUS JNymq1jA8gxFb4sUlx9VMlffKiMhvgFiGA== X-Received: by 2002:a02:140a:: with SMTP id 10mr18915165jag.72.1574179857938; Tue, 19 Nov 2019 08:10:57 -0800 (PST) Received: from [192.168.1.159] ([65.144.74.34]) by smtp.gmail.com with ESMTPSA id u6sm5616560ilm.22.2019.11.19.08.10.55 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 19 Nov 2019 08:10:56 -0800 (PST) Subject: Re: [PATCH v6 15/24] fs/io_uring: set FOLL_PIN via pin_user_pages() To: John Hubbard , Andrew Morton Cc: Al Viro , Alex Williamson , Benjamin Herrenschmidt , =?UTF-8?B?QmrDtnJuIFTDtnBlbA==?= , Christoph Hellwig , Dan Williams , Daniel Vetter , Dave Chinner , David Airlie , "David S . Miller" , Ira Weiny , Jan Kara , Jason Gunthorpe , Jonathan Corbet , =?UTF-8?B?SsOpcsO0bWUgR2xpc3Nl?= , Magnus Karlsson , Mauro Carvalho Chehab , Michael Ellerman , Michal Hocko , Mike Kravetz , Paul Mackerras , Shuah Khan , Vlastimil Babka , bpf@vger.kernel.org, dri-devel@lists.freedesktop.org, kvm@vger.kernel.org, linux-block@vger.kernel.org, linux-doc@vger.kernel.org, linux-fsdevel@vger.kernel.org, linux-kselftest@vger.kernel.org, linux-media@vger.kernel.org, linux-rdma@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, netdev@vger.kernel.org, linux-mm@kvack.org, LKML References: <20191119081643.1866232-1-jhubbard@nvidia.com> <20191119081643.1866232-16-jhubbard@nvidia.com> From: Jens Axboe Message-ID: <2ae65d1b-a3eb-74ed-afce-c493de5bbfd3@kernel.dk> Date: Tue, 19 Nov 2019 09:10:54 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.9.0 MIME-Version: 1.0 In-Reply-To: <20191119081643.1866232-16-jhubbard@nvidia.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 11/19/19 1:16 AM, John Hubbard wrote: > Convert fs/io_uring to use the new pin_user_pages() call, which sets > FOLL_PIN. Setting FOLL_PIN is now required for code that requires > tracking of pinned pages, and therefore for any code that calls > put_user_page(). > > In partial anticipation of this work, the io_uring code was already > calling put_user_page() instead of put_page(). Therefore, in order to > convert from the get_user_pages()/put_page() model, to the > pin_user_pages()/put_user_page() model, the only change required > here is to change get_user_pages() to pin_user_pages(). > > Reviewed-by: Jan Kara > Signed-off-by: John Hubbard You dropped my reviewed-by now... Given the file, you'd probably want to keep that. -- Jens Axboe