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 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 91C7CC4320A for ; Fri, 27 Aug 2021 19:23:57 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 70D9A6023B for ; Fri, 27 Aug 2021 19:23:57 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230458AbhH0TYp (ORCPT ); Fri, 27 Aug 2021 15:24:45 -0400 Received: from zeniv-ca.linux.org.uk ([142.44.231.140]:42932 "EHLO zeniv-ca.linux.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229437AbhH0TYn (ORCPT ); Fri, 27 Aug 2021 15:24:43 -0400 Received: from viro by zeniv-ca.linux.org.uk with local (Exim 4.94.2 #2 (Red Hat Linux)) id 1mJhS9-00GZi6-Qq; Fri, 27 Aug 2021 19:23:49 +0000 Date: Fri, 27 Aug 2021 19:23:49 +0000 From: Al Viro To: Linus Torvalds Cc: Andreas Gruenbacher , Christoph Hellwig , "Darrick J. Wong" , Jan Kara , Matthew Wilcox , cluster-devel , linux-fsdevel , Linux Kernel Mailing List , ocfs2-devel@oss.oracle.com Subject: Re: [PATCH v7 05/19] iov_iter: Introduce fault_in_iov_iter_writeable Message-ID: References: <20210827164926.1726765-1-agruenba@redhat.com> <20210827164926.1726765-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 Fri, Aug 27, 2021 at 12:05:32PM -0700, Linus Torvalds wrote: > But see above. People *need* that ternary result, and "bytes/pages > uncopied" is not only the traditional one we use elsewhere in similar > situations, it's the one that has the easiest error tests for existing > users (because zero remains "everything worked"). Could you show the cases where "partial copy, so it's OK" behaviour would break anything? For that you would need the case where partial fault-in is currently rejected by the check checks downstream from there (for failing copy-in/copy-out) would be either missing or would not be handled correctly in case of partial fault-in or would slow a fast path down. I don't see any such cases and I would be very surprised if such existed. If you see any, please describe them - I could be wrong. And I would like to take a good look at any such case and see how well does it handle possible short copy after full fault-in.