From patchwork Sun Mar 22 11:32:11 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Pingfan Liu X-Patchwork-Id: 11451637 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id F03E81668 for ; Sun, 22 Mar 2020 11:34:37 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id A7ED820787 for ; Sun, 22 Mar 2020 11:34:37 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="tTZ4qqI8" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org A7ED820787 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=owner-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix) id D79996B0003; Sun, 22 Mar 2020 07:34:36 -0400 (EDT) Delivered-To: linux-mm-outgoing@kvack.org Received: by kanga.kvack.org (Postfix, from userid 40) id D2B4E6B0006; Sun, 22 Mar 2020 07:34:36 -0400 (EDT) X-Original-To: int-list-linux-mm@kvack.org X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id C406E6B0007; Sun, 22 Mar 2020 07:34:36 -0400 (EDT) X-Original-To: linux-mm@kvack.org X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0208.hostedemail.com [216.40.44.208]) by kanga.kvack.org (Postfix) with ESMTP id B09096B0003 for ; Sun, 22 Mar 2020 07:34:36 -0400 (EDT) Received: from smtpin27.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay05.hostedemail.com (Postfix) with ESMTP id 81C00181AEF09 for ; Sun, 22 Mar 2020 11:34:36 +0000 (UTC) X-FDA: 76622790552.27.desk39_7f8536eb8b335 X-Spam-Summary: 2,0,0,b576343c1d4f9b25,d41d8cd98f00b204,kernelfans@gmail.com,,RULES_HIT:41:69:355:379:541:800:960:973:988:989:1260:1345:1431:1437:1534:1540:1711:1730:1747:1777:1792:2393:2559:2562:3138:3139:3140:3141:3142:3352:3865:3866:3867:3870:3871:5007:6261:6653:6742:7875:7903:9413:10004:11026:11658:11914:12043:12291:12296:12297:12438:12517:12519:12683:12895:13069:13311:13357:13846:14095:14181:14384:14394:14687:14721:21080:21251:21444:21451:21627:21666:30012:30054:30064:30070,0,RBL:209.85.216.66:@gmail.com:.lbl8.mailshell.net-62.50.0.100 66.100.201.100,CacheIP:none,Bayesian:0.5,0.5,0.5,Netcheck:none,DomainCache:0,MSF:not bulk,SPF:fp,MSBL:0,DNSBL:none,Custom_rules:0:0:0,LFtime:23,LUA_SUMMARY:none X-HE-Tag: desk39_7f8536eb8b335 X-Filterd-Recvd-Size: 3942 Received: from mail-pj1-f66.google.com (mail-pj1-f66.google.com [209.85.216.66]) by imf02.hostedemail.com (Postfix) with ESMTP for ; Sun, 22 Mar 2020 11:34:36 +0000 (UTC) Received: by mail-pj1-f66.google.com with SMTP id m15so4685122pje.3 for ; Sun, 22 Mar 2020 04:34:35 -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=zDGPRLuuarDLZQ+WNCYaUMcWvomGYPw+wDeEhFuyAxg=; b=tTZ4qqI8gga79iORQO4aSwsOLs8Yx/oiMadUveAi+Lccml/GBARWHBhFicqu031aPq WL91VEhgpk5NsD+uLMsEHY0JDeAKGVuJIUcbbN3s0WFjvjMNSNRSmd3kbCQBgZrYJV60 y59imIi8lqIU4BX4NIGophpxyiM5ZACJlRD/t4IsBwOm8x/zmg3idt3MYLxqSMGHQrXF dSbv9mIB6aXY04+JUgguuI3eQZ3IuwfN25GTbJFPeluQD6eUc7O/PMI2Rq26/ce2ZU1c NqBVwhGEvwXntep14zfUTemq84+sclsnly4JYyrsbRL0oVzicqJWCrAUivU52NwG2XlG rmUg== 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=zDGPRLuuarDLZQ+WNCYaUMcWvomGYPw+wDeEhFuyAxg=; b=rqahsJ2rle1E5hNVx89/NHThehOv4jsALZXc6g57enC6CgErqvAYTHSB4VcL/zo/uh kFunzZa8oWeO33eTFWJiixq56NVDqlNZGQABEutycIWL6ajBoDdsUf0zZnSGeakRWa6v ceLWTxsYES7PGuMfOMlGOI6y+JnXMve0t/vERQ5axbQtRcYn8IiG2r/F4c5lphxHRPl/ u8h3NomGuAOw9MGQVe2eYzgRvQWUn7erlKGjzWIGPqNvmyDcStboLExHqXbkJJ4F6uwW 0gsKEHXjITzGnvf8NtK24xQR4LVZAf2sOVGn6JeoYIl4U9uZKicCUVw6yLWYzZgxpxG0 asNw== X-Gm-Message-State: ANhLgQ1iR+ESdNGFM/hpOOeL9x9alq363d5qUwuk6SPTYoRDah3HjS7b rOO++Z33ICCzxRIVkPpyz5ytmXw= X-Google-Smtp-Source: ADFU+vvrlH1pgAg0vtxEQZa5VzkGRdw9MDjvg8et5+0lNbwBODVngaKCdH3mejXZoRlgEEQzZePgDw== X-Received: by 2002:a17:90a:33d1:: with SMTP id n75mr19066395pjb.167.1584876874787; Sun, 22 Mar 2020 04:34:34 -0700 (PDT) Received: from mylaptop.redhat.com ([209.132.188.80]) by smtp.gmail.com with ESMTPSA id i23sm10474445pfq.157.2020.03.22.04.34.29 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 22 Mar 2020 04:34:34 -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: [PATCHv8 0/2] fix omission of check on FOLL_LONGTERM in gup fast path Date: Sun, 22 Mar 2020 19:32:11 +0800 Message-Id: <1584876733-17405-1-git-send-email-kernelfans@gmail.com> X-Mailer: git-send-email 2.7.5 X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: v7 -> v8: - drop the [3/3] in v7, which is a test case without real use case now. - apply renamming in __get_user_pages_fast() besides internal_get_user_pages_fast() - improve the note in code with [2/2] 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 (2): 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.c | 34 +++++++++++++++++++++------------- 1 file changed, 21 insertions(+), 13 deletions(-) --- 2.7.5