From: Al Viro Date: Sat, 12 Jun 2021 23:38:16 +0000 Subject: [Cluster-devel] [RFC 5/9] iov_iter: Add iov_iter_fault_in_writeable() In-Reply-To: References: <20210531170123.243771-1-agruenba@redhat.com> <20210531170123.243771-6-agruenba@redhat.com> Message-ID: List-Id: To: cluster-devel.redhat.com MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit On Sat, Jun 12, 2021 at 04:17:30PM -0700, Linus Torvalds wrote: > On Sat, Jun 12, 2021 at 2:47 PM Al Viro wrote: > > > > O_DIRECT case is a PITA - there we use GUP and there's no way > > to tell GUP that in the current situation we do *NOT* want to hit > > ->fault()/->page_mkwrite()/etc. pagefault_disable() won't be even > > noticed there... > > Well, we could change that. > > And we do have get_user_pages_fast_only() these days. FWIW, I'm looking through the users of iov_iter_get_pages{,_alloc}() right now; their semantics feels somewhat wrong. Will follow up when I finish looking through that pile...