Received: by 2002:ac0:a679:0:0:0:0:0 with SMTP id p54csp192683imp; Tue, 19 Feb 2019 21:34:20 -0800 (PST) X-Google-Smtp-Source: AHgI3Ibh9NoFuCPdHnggEBmbW8ASg7np8BfgiD3K920428oM+TV2hlCLmNp1CPkYcEdvdp1oKjih X-Received: by 2002:a65:64c4:: with SMTP id t4mr4020341pgv.152.1550640860848; Tue, 19 Feb 2019 21:34:20 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1550640860; cv=none; d=google.com; s=arc-20160816; b=mtWPVXNvR3kPWoPvr5LOXfEERIJ9X1LMxbO/TszsksUa1YZIc9OtjV/vjV4VXQ744l SruKMZvD3Mx6JJbZlZ5i43lt9VRnxIy1Fa1i4LpHPl3BukKIPeEOCvE14+lj5NxxjNSu /fdrZKI8QikKJ3EPzwR8lLO5PfUfBFpWvXPrwaT1UQlhXc25D41zVy2qAmUcK44vt4la 7Y6oQYTYaqdEhohog3aUhOA27AiWP9kz95Uqm2Jn2/KAGOZE1CYrltL9zX3HUIqtuXIH 956tykttCA6gPdCYEaWS843odQRXvCeXfvc92e0/P/RknV2Pkzt2Dhh1fFAYFsoK7xA4 CuoA== 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:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=kyMwtL6l+E6laFOjdhzDjY7ZhAMUjFdLnnCnR8EJtfw=; b=yd+dhq7pi7/e6TzqsG73vRqf9Z58wEg36oO+LzAMJERMksGPYM7x7vN8OUzVwQEvtH EJ994WOHXdAL8XtBKD0HafL4WPdl/3bmzvqnGSjIhluFlDF36or7ufrtrV+1bvhi3aR+ 3nngFtj9wc3zFhUf3N1ExE7F/o+qjvQHjncdTaOw78yp7UhI2v3mr2yQZSz1HgZd+ljO XGUNL6qeybLh0igw1K0f0Si0XVg418H3sDXkXExtWqZCKqV9xE7MLB9DM4D1omTeItMd tP4ToHBkapnjTcu0+3X54CLof1UBpg55d4XVm0fNDkaS4BuolktCfw1lazQRcwJ5r4FO rvuQ== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id v69si7270016pfa.37.2019.02.19.21.34.06; Tue, 19 Feb 2019 21:34:20 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730844AbfBTFcM (ORCPT + 99 others); Wed, 20 Feb 2019 00:32:12 -0500 Received: from mga11.intel.com ([192.55.52.93]:42355 "EHLO mga11.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726682AbfBTFaw (ORCPT ); Wed, 20 Feb 2019 00:30:52 -0500 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by fmsmga102.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 19 Feb 2019 21:30:51 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.58,388,1544515200"; d="scan'208";a="144924919" Received: from iweiny-desk2.sc.intel.com ([10.3.52.157]) by fmsmga002.fm.intel.com with ESMTP; 19 Feb 2019 21:30:50 -0800 From: ira.weiny@intel.com To: John Hubbard , Andrew Morton , Michal Hocko , "Kirill A. Shutemov" , Peter Zijlstra , Jason Gunthorpe , Benjamin Herrenschmidt , Paul Mackerras , "David S. Miller" , Martin Schwidefsky , Heiko Carstens , Rich Felker , Yoshinori Sato , Thomas Gleixner , Ingo Molnar , Borislav Petkov , Ralf Baechle , Paul Burton , James Hogan Cc: Ira Weiny , linux-kernel@vger.kernel.org, linux-mm@kvack.org, linux-mips@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, linux-s390@vger.kernel.org, linux-sh@vger.kernel.org, sparclinux@vger.kernel.org, kvm-ppc@vger.kernel.org, kvm@vger.kernel.org, linux-fpga@vger.kernel.org, dri-devel@lists.freedesktop.org, linux-rdma@vger.kernel.org, linux-media@vger.kernel.org, linux-scsi@vger.kernel.org, devel@driverdev.osuosl.org, virtualization@lists.linux-foundation.org, netdev@vger.kernel.org, linux-fbdev@vger.kernel.org, xen-devel@lists.xenproject.org, devel@lists.orangefs.org, ceph-devel@vger.kernel.org, rds-devel@oss.oracle.com Subject: [RESEND PATCH 6/7] IB/qib: Use the new FOLL_LONGTERM flag to get_user_pages_fast() Date: Tue, 19 Feb 2019 21:30:39 -0800 Message-Id: <20190220053040.10831-7-ira.weiny@intel.com> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190220053040.10831-1-ira.weiny@intel.com> References: <20190220053040.10831-1-ira.weiny@intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Ira Weiny Use the new FOLL_LONGTERM to get_user_pages_fast() to protect against FS DAX pages being mapped. Signed-off-by: Ira Weiny --- drivers/infiniband/hw/qib/qib_user_sdma.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/infiniband/hw/qib/qib_user_sdma.c b/drivers/infiniband/hw/qib/qib_user_sdma.c index 31c523b2a9f5..b53cc0240e02 100644 --- a/drivers/infiniband/hw/qib/qib_user_sdma.c +++ b/drivers/infiniband/hw/qib/qib_user_sdma.c @@ -673,7 +673,7 @@ static int qib_user_sdma_pin_pages(const struct qib_devdata *dd, else j = npages; - ret = get_user_pages_fast(addr, j, 0, pages); + ret = get_user_pages_fast(addr, j, FOLL_LONGTERM, pages); if (ret != j) { i = 0; j = ret; -- 2.20.1