Received: by 2002:ac0:946b:0:0:0:0:0 with SMTP id j40csp4032681imj; Tue, 12 Feb 2019 08:40:30 -0800 (PST) X-Google-Smtp-Source: AHgI3IY/WN56rqEMNJsslLz/bN1WlZDWZKJEeJBs7Gw3X0v5lwVD95XvoGqMt/roAIiJa06X+XY2 X-Received: by 2002:a17:902:70c9:: with SMTP id l9mr4894980plt.308.1549989630862; Tue, 12 Feb 2019 08:40:30 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1549989630; cv=none; d=google.com; s=arc-20160816; b=m4cCtF4Zng2eN+Nhx3QnCyQACOlPWJV7+D7RMPO/kcQPXj0q3RZL15V5YTPm5FX5kX 3jtEuTbWxWP4Iijkp/v+a9R6I+QxD44pcCCtUEInW80+f+loyLmmoTjlqqIBXndw7ggt 9wY624FjiA9co/6qk9xatvdKrhotgXRNikSyliCAk1qNBMGy1j+89ogFOLK7NGzKZp99 3fvuW7vOpeikvgZcbvI6wZIaXvKvKsW4+LKbJ3Mb+Cg5/tohIz5uATsVptRlW67+mS6x VfKuB50eQ5a8TMR3m8PkIFiQsproA3sMRlgAdsEGUo69QahwC+bTmEgLG8zeDu3mv25J WslA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:feedback-id:mime-version:user-agent :references:message-id:in-reply-to:subject:cc:to:from:date :dkim-signature; bh=QONQxq6NqJ1WQyN3EWBcAnyyjiKu2fZbxNpfP8BUfQw=; b=eresNHziA33J04Xmwz/vfe319Y3QCXeP+05hbVRSQA8yXgssuj1HWbhGAD4pt8KYSM pcFDigirmX/I2GI+8IuSmK03HXJZpvE4a5DHad+oYYyRtGHy60ZyJ12cltPzFhrZ1GNR CINoH/JTC6tYhfdsfYWyj65rfMaFPdYRssvF29v+KmvjzEfshzcHoVLJANwcxqUXskVn o5wlZZ/tGQSNB6zx7hzHC2oZkhdxFoDaxPUo8x8TAQaXFdVUcSK49M5w+Ngl1V9BoQ2w WO4gtELS4r8aZ3fMSuaVn3H07ymXdKHp+KXNRxTL7uzkKA68cB5nM8QmFQhE9lmhhB8A 0g2Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amazonses.com header.s=ug7nbtf4gccmlpwj322ax3p6ow6yfsug header.b=L9qVsApf; 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 c13si6575624pgk.253.2019.02.12.08.40.14; Tue, 12 Feb 2019 08:40:30 -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=@amazonses.com header.s=ug7nbtf4gccmlpwj322ax3p6ow6yfsug header.b=L9qVsApf; 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 S1731143AbfBLQjo (ORCPT + 99 others); Tue, 12 Feb 2019 11:39:44 -0500 Received: from a9-99.smtp-out.amazonses.com ([54.240.9.99]:53352 "EHLO a9-99.smtp-out.amazonses.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729633AbfBLQjo (ORCPT ); Tue, 12 Feb 2019 11:39:44 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/simple; s=ug7nbtf4gccmlpwj322ax3p6ow6yfsug; d=amazonses.com; t=1549989583; h=Date:From:To:cc:Subject:In-Reply-To:Message-ID:References:MIME-Version:Content-Type:Feedback-ID; bh=QONQxq6NqJ1WQyN3EWBcAnyyjiKu2fZbxNpfP8BUfQw=; b=L9qVsApfysCu2oX2ycOKEAIsoSsfsL401tm3A5JhTNcfPRycrN/SU3q03Yg8CacL iUWr90rd4XwT+bw/1d13ahfJRucia0Sc1lYrTbPfbF243/9D/sIIqLWAb7mYBFB4+aK Iz4Mws7VxD3GCLqKnJO1/FdcgEhND4r84guKpcFE= Date: Tue, 12 Feb 2019 16:39:43 +0000 From: Christopher Lameter X-X-Sender: cl@nuc-kabylake To: John Hubbard cc: Jason Gunthorpe , Ira Weiny , Dan Williams , Jan Kara , Dave Chinner , Doug Ledford , Matthew Wilcox , lsf-pc@lists.linux-foundation.org, linux-rdma , Linux MM , Linux Kernel Mailing List , Jerome Glisse , Michal Hocko Subject: Re: [LSF/MM TOPIC] Discuss least bad options for resolving longterm-GUP usage by RDMA In-Reply-To: <018c1a05-5fd8-886a-573b-42649949bba8@nvidia.com> Message-ID: <01000168e29418ba-81301f56-9370-4555-b70c-3ad51be84543-000000@email.amazonses.com> References: <01000168c8e2de6b-9ab820ed-38ad-469c-b210-60fcff8ea81c-000000@email.amazonses.com> <20190208044302.GA20493@dastard> <20190208111028.GD6353@quack2.suse.cz> <20190211102402.GF19029@quack2.suse.cz> <20190211180654.GB24692@ziepe.ca> <20190211181921.GA5526@iweiny-DESK2.sc.intel.com> <20190211221247.GI24692@ziepe.ca> <018c1a05-5fd8-886a-573b-42649949bba8@nvidia.com> User-Agent: Alpine 2.21 (DEB 202 2017-01-01) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII X-SES-Outgoing: 2019.02.12-54.240.9.99 Feedback-ID: 1.us-east-1.fQZZZ0Xtj2+TD7V5apTT/NrT6QKuPgzCT/IC7XYgDKI=:AmazonSES Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, 11 Feb 2019, John Hubbard wrote: > But anyway, Jan's proposal a bit earlier today [1] is finally sinking into > my head--if we actually go that way, and prevent the caller from setting up > a problematic gup pin in the first place, then that may make this point sort > of moot. Ok well can be document how we think it would work somewhere? Long term mapping a page cache page could a problem and we need to explain that somewhere. > > ie indicate to the FS that is should not attempt to remap physical > > memory addresses backing this VMA. If the FS can't do that it must > > fail. > > > > Yes. Duration is probably less important than the fact that the page > is specially treated. Yup.