From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-3.8 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS, URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 22355C48BCF for ; Sat, 12 Jun 2021 23:39:33 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id E439E610E9 for ; Sat, 12 Jun 2021 23:39:32 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231477AbhFLXkY (ORCPT ); Sat, 12 Jun 2021 19:40:24 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34068 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229753AbhFLXkX (ORCPT ); Sat, 12 Jun 2021 19:40:23 -0400 Received: from zeniv-ca.linux.org.uk (zeniv-ca.linux.org.uk [IPv6:2607:5300:60:148a::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0A6AEC061574 for ; Sat, 12 Jun 2021 16:38:22 -0700 (PDT) Received: from viro by zeniv-ca.linux.org.uk with local (Exim 4.94.2 #2 (Red Hat Linux)) id 1lsDCj-007TCx-0F; Sat, 12 Jun 2021 23:38:17 +0000 Date: Sat, 12 Jun 2021 23:38:16 +0000 From: Al Viro To: Linus Torvalds Cc: Andreas Gruenbacher , cluster-devel , Linux Kernel Mailing List , Jan Kara , Matthew Wilcox Subject: Re: [RFC 5/9] iov_iter: Add iov_iter_fault_in_writeable() Message-ID: References: <20210531170123.243771-1-agruenba@redhat.com> <20210531170123.243771-6-agruenba@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Sender: Al Viro Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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... From mboxrd@z Thu Jan 1 00:00:00 1970 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...