Received: by 2002:a25:e7d8:0:0:0:0:0 with SMTP id e207csp2196679ybh; Sun, 15 Mar 2020 21:37:06 -0700 (PDT) X-Google-Smtp-Source: ADFU+vvskpsEyTEnXQ7lPDKvzyOu5qMfZOsclVhb9jXsEsggzt7PZ2MRo3qJac0+37GwgpeCiIJu X-Received: by 2002:a9d:4d02:: with SMTP id n2mr20109179otf.107.1584333426045; Sun, 15 Mar 2020 21:37:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1584333426; cv=none; d=google.com; s=arc-20160816; b=SCWdWab7KFezqX8MwvPuW6IkOXoNhdhDo7YZ0IG3KkTwwLULgPoEcUBj2mNg8oPu9y z8mqNCapEWN6jy6yolS1pNS/+TOx+bc7AnV5qqYltmji1SJS6jVKhDpC5wYgS5Xcf37y MwzcN0WTfH9FyHiksJQ9Cw4aKDNe0fp/E/dtxV4z0EOua9je1FpPE/wLnNw4PYMPUWP+ Ab4JweieyidcYZXUbGUiFkAwzA2hhAoikVYOelX4zqq3w9U3TqV1bv8trN1L0malwqCS AmzoCfFFhM/7fzK5PO3jbnG8y+NEXruk33ets0m2BTr3ry+mJUsWWfQlQgSnoynPUkHa D4zQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dkim-signature; bh=lXdwJTvT1iuUgFQw8gaQa71v7GEvPOebjKf9KF4NkGk=; b=IRxo+8TVInzJOLaK6sRxFgHZNxOJYBscdGdgOiOxrUA45V8eQpRpY8bUY/roPgNofB lCrGpfZ0aJjiD6DPjDOnUgzMecWV3h0mN2KPb8B70EE2JteTVaOvMit5vEILg2MSqWJk MYMdn0eFzRogYtadqUiexLCNaAkdC8Y6Ec0xYVOdkuse7tqbeLpBVyIJ/bX5iF/+C2uU OysJIPe3RWCnb7uk3gts0xK7/9oOB/3Ujp+26tMKRW/w2GehPnks8sdGMJtr8Fa9aUuV x3WfPq0hHrLetXlvTSJGVF4D48hWmxUF2T9SjN4gTtvc+w9+uO3heFq9xVfoTG5ieVDN l/DQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=m+YssmEX; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id r17si9314596ota.160.2020.03.15.21.36.51; Sun, 15 Mar 2020 21:37:06 -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; dkim=pass header.i=@gmail.com header.s=20161025 header.b=m+YssmEX; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729576AbgCPEg0 (ORCPT + 99 others); Mon, 16 Mar 2020 00:36:26 -0400 Received: from mail-pl1-f193.google.com ([209.85.214.193]:46042 "EHLO mail-pl1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729423AbgCPEgZ (ORCPT ); Mon, 16 Mar 2020 00:36:25 -0400 Received: by mail-pl1-f193.google.com with SMTP id b22so7388164pls.12 for ; Sun, 15 Mar 2020 21:36:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=lXdwJTvT1iuUgFQw8gaQa71v7GEvPOebjKf9KF4NkGk=; b=m+YssmEXSmxxKpanK0Py/G1CD7THoku3KfWUEjhQ64ywgxFx7K04VJsvqUa+zQ0TJc oQGIJTQNoxlz648QVzrDfVhfmWtUddCXWRwvi3t6xgBqFmXTieRwvYMdNy8M7FaPF/ni KCzrOyNBMhpqfMkIe7jlupVWTfS1MMYDjzlRkvNDti3/Xat/AGwOEWu51eS3kpX02CKZ PocLODYkwiIxKgvNuPAcEPl0q7O9zRoe3fKZ9BbBIucQIanw7PN3J9c03G1uEkDfAMQ7 2FozxnrOiPBOO2gy4lLkF/BSqL8kbH7jp5bqqT5q4EeNh5xcYqmwkQ+EMwtTOw/h8sw/ by0w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=lXdwJTvT1iuUgFQw8gaQa71v7GEvPOebjKf9KF4NkGk=; b=tVLX5Bc9yBCTyGbvRIul7MWF+fO/JlNBEbZwLeGTM/I+spjaTfYI4DR6KbuG30BqnS evJN6PA2Mx00NXgTuOFlI2VRQ8D7A3CUO8IXxGhi/B0F+5QtoWAVG6pyNKPQtwtR7OMA E5tBkr2dWE6o6I6THzZYCd4XVmlaQ/DkhM1dN0ttTLRroIBp6Zxa5YaI8MKhz72cPeA1 umSVRS/WBvuEjd1vBN95+nDMK0A1txds/DzFFHxQazIr8umgh0HvCb/+QAfT0xyCpCB6 o7LbGKfcz0ZqOJk2pqkiih3qvkLPEEuc0drxX2ccOc7PVbh1HyEV1nzrjihD095YC7la /0Mg== X-Gm-Message-State: ANhLgQ3AJagpzGuyAi73XJQKL0dhK7cgT8I2qRIyNC8nkUwFRRntSwFP ClhyPOmrbp8Mn7I44NNjMA== X-Received: by 2002:a17:90a:654a:: with SMTP id f10mr23563849pjs.50.1584333384681; Sun, 15 Mar 2020 21:36:24 -0700 (PDT) Received: from mylaptop.redhat.com ([209.132.188.80]) by smtp.gmail.com with ESMTPSA id d6sm18544296pjz.39.2020.03.15.21.36.19 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 15 Mar 2020 21:36:24 -0700 (PDT) From: Pingfan Liu To: linux-mm@kvack.org Cc: Pingfan Liu , Ira Weiny , Andrew Morton , Mike Rapoport , Dan Williams , Matthew Wilcox , John Hubbard , "Aneesh Kumar K.V" , Christoph Hellwig , Shuah Khan , Jason Gunthorpe , linux-kernel@vger.kernel.org Subject: [PATCHv6 0/3] fix omission of check on FOLL_LONGTERM in gup fast path Date: Mon, 16 Mar 2020 12:34:01 +0800 Message-Id: <1584333244-10480-1-git-send-email-kernelfans@gmail.com> X-Mailer: git-send-email 2.7.5 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org v5 -> v6: rebase code to latest linux-mm git tree improve commit log [3/3], rename GUP_FAST_LONGTERM_BENCHMARK as PIN_FAST_LONGTERM_BENCHMARK due to LONGTERM should be a special case of pin page. Cc: Ira Weiny Cc: Andrew Morton Cc: Mike Rapoport Cc: Dan Williams Cc: Matthew Wilcox Cc: John Hubbard Cc: "Aneesh Kumar K.V" Cc: Christoph Hellwig Cc: Shuah Khan Cc: Jason Gunthorpe To: linux-mm@kvack.org Cc: linux-kernel@vger.kernel.org Pingfan Liu (3): mm/gup: rename nr as nr_pinned in get_user_pages_fast() mm/gup: fix omission of check on FOLL_LONGTERM in gup fast path mm/gup_benchemark: add LONGTERM_BENCHMARK test in gup fast path mm/gup.c | 29 +++++++++++++++++++---------- mm/gup_benchmark.c | 7 +++++++ tools/testing/selftests/vm/gup_benchmark.c | 6 +++++- 3 files changed, 31 insertions(+), 11 deletions(-) -- 2.7.5