Received: by 2002:a05:6a10:1d13:0:0:0:0 with SMTP id pp19csp1567454pxb; Fri, 27 Aug 2021 11:53:23 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwblgulR3CUZBItCMGR047P3BAjqu/bFgAGQAnIOz8LGfQC5b48EwRubp6LPc7mmepdFIyA X-Received: by 2002:a92:cccd:: with SMTP id u13mr7786547ilq.13.1630090403269; Fri, 27 Aug 2021 11:53:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1630090403; cv=none; d=google.com; s=arc-20160816; b=O+lY7Q921OQ2/XKJtF3iaWHHNkxNbqq9/ngfzM1vzhYsWIpe+lrQgLsno9oHMayqKC odyyAiIvONLYVUVwVgcv805COrJN3T7tu0s2nSEV2y9YOSBG+OtVScIJDAIHhze5Phl7 xEg5Z3RXBqIo2FvcAQfz1MV8pQl2jIeuV24n1QJ0+sU9RKxFysW7GUP57k3EN1aS6ZX/ sQq9baA0JX+XJsrNnNvFFwDoVttH9PiKNMs+z2r4cd4/uCgVkMyIgDIZO5dcpBW9wVAV sOWpLFzN8bNMDyEbJ1O0+X7rOqX2i4i5xaWNlTxM4/kfU2lLlmGsrsRIF56UqDpKIMXm jTKw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=OsmQvH8O3ETC0TmoHkXcVXMpdszVLBP+sBlY9lWCPVA=; b=MqVRjiK3UWqO2Em/mPxWdL204lJndULpxzId2EBVBgZCGiF3Z030VP5ZJq+lXXS0k3 ckK1HgEZNDJcoUwRDakricp1R0kybiWxCCAXDVwd+TmKbFouqu5wTTRBKp64Gc/KGKb/ kxhXR/p63OsmNYKh+H73n12DeuQDUXm3Bs1syA0wz6a7L2xFX+kMxdrKcFUTdWN6rTZD Z8pUXxW6pdnjJLQHRhD+UedeGJ8XgA9x+s5VWu7A2FNcDOWM0+8CdXq36B3lphzEGDBA XUZIkoT7r0hlaNVZP5F+/c3DbsdC23hGoQ0oABjC2RNqOJ+Rdx4XyTUQ/gB765GLOfEd IwpA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id 8si2784598jay.69.2021.08.27.11.53.11; Fri, 27 Aug 2021 11:53:23 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230304AbhH0Sww (ORCPT + 99 others); Fri, 27 Aug 2021 14:52:52 -0400 Received: from zeniv-ca.linux.org.uk ([142.44.231.140]:42272 "EHLO zeniv-ca.linux.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230084AbhH0Swv (ORCPT ); Fri, 27 Aug 2021 14:52:51 -0400 Received: from viro by zeniv-ca.linux.org.uk with local (Exim 4.94.2 #2 (Red Hat Linux)) id 1mJgt6-00GYzg-NV; Fri, 27 Aug 2021 18:47:36 +0000 Date: Fri, 27 Aug 2021 18:47:36 +0000 From: Al Viro To: Andreas Gruenbacher Cc: Linus Torvalds , Christoph Hellwig , "Darrick J. Wong" , Jan Kara , Matthew Wilcox , cluster-devel@redhat.com, linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org, ocfs2-devel@oss.oracle.com Subject: Re: [PATCH v7 18/19] iov_iter: Introduce nofault flag to disable page faults Message-ID: References: <20210827164926.1726765-1-agruenba@redhat.com> <20210827164926.1726765-19-agruenba@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210827164926.1726765-19-agruenba@redhat.com> Sender: Al Viro Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Aug 27, 2021 at 06:49:25PM +0200, Andreas Gruenbacher wrote: > Introduce a new nofault flag to indicate to get_user_pages to use the > FOLL_NOFAULT flag. This will cause get_user_pages to fail when it > would otherwise fault in a page. > > Currently, the noio flag is only checked in iov_iter_get_pages and > iov_iter_get_pages_alloc. This is enough for iomaop_dio_rw, but it > may make sense to check in other contexts as well. I can live with that, but * direct assignments (as in the next patch) are fucking hard to grep for. Is it intended to be "we set it for duration of primitive", or...? * it would be nice to have a description of intended semantics for that thing. This "may make sense to check in other contexts" really needs to be elaborated (and agreed) upon. Details, please.