Received: by 2002:a05:7412:2a8c:b0:e2:908c:2ebd with SMTP id u12csp1785795rdh; Tue, 26 Sep 2023 03:39:31 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGmdVLLuk4Y0/n6wb2Vh2CnEFHtylSwNuE8day9/EX4quABNp9DVpxPZk1HdXbmta1F9Tcu X-Received: by 2002:a9d:6a47:0:b0:6c0:e5c3:40b5 with SMTP id h7-20020a9d6a47000000b006c0e5c340b5mr9669826otn.6.1695724771588; Tue, 26 Sep 2023 03:39:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695724771; cv=none; d=google.com; s=arc-20160816; b=IbtWRNvxJy06J+mFRE+lj/tgEGeOBH10eSwpK8a+zt5Gz2jXyhJm4Q8w+1JFSVKwZG 9qLsdqsZ4Ihbsg4VwpKy/0Iw6ClNBkJjeKnuCODAuLQwGP3K+6phFKOAazojygTO1GJ0 LVngeY2n5AEH11UiEzcA0oBUvHoWfsJdevmedZgxr+mPk2P8Clm4exd7SlUMmR8CeS9Q PceIuDPjCX65iTKMrllgIeIEFYA2HmjO/oQlsEkP+jsgJkiYYvLmk1sGGFcCG3jWv4PO b9VLcZ46xol5KlPyJ0BgBG/b4x2tlWKjxIh4XK9KscS1CxO8Cl6t+dWNevOPK/aGRg6b hRfw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=p9nGEK2t4v79+GNVFRhq1GyqeSDrALsbcIDsaf0XemI=; fh=yHB+Cpvht+6riKzCl3QwXUFB/VDT3eBWGuBK9DXZ65M=; b=kcZJXKH3rqcrnYwEH04KsFQnJ1ugn1UXLMmfalo9TnWIJECUL6hA41pNZR5vZizCcV VgXpb8zldFrqDpq/rwabhyMT3xLWi/aMXLkmf44Ln/S44aGgYu0n09OmVvayQ8B0RJe2 35LoJLx/S6Enh4wzBN7683/hHtqPfo1f7cW7Uyk5mrjzTzuy14MvB8LK8FfL6vZlGkSS IfDzFyHTw6/SnKeMORDaOi67z+st5qrJ2evBQzbYoITh6PvboQVdHOglYL5IQem3x1IY VYShLTw0Bhnvd3vRzULdHOxZkf95DYQJo01jjrWAxv2dHoexrJr2NaR+GG7Afle8TZyu 5JjA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=t7IRT5eB; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from howler.vger.email (howler.vger.email. [2620:137:e000::3:4]) by mx.google.com with ESMTPS id y17-20020a63de51000000b00577461296a9si676213pgi.338.2023.09.26.03.39.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 26 Sep 2023 03:39:31 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) client-ip=2620:137:e000::3:4; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=t7IRT5eB; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by howler.vger.email (Postfix) with ESMTP id D56E28369F46; Tue, 26 Sep 2023 03:22:06 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at howler.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232521AbjIZKWE (ORCPT + 99 others); Tue, 26 Sep 2023 06:22:04 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57730 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229458AbjIZKWD (ORCPT ); Tue, 26 Sep 2023 06:22:03 -0400 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8FFD7B3; Tue, 26 Sep 2023 03:21:57 -0700 (PDT) Received: by smtp.kernel.org (Postfix) with ESMTPSA id BE3E0C433CA; Tue, 26 Sep 2023 10:21:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1695723717; bh=qvZpB1dUa1GvX0J4/Ie56RzBn0dFYJRP141sFX3VSFI=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=t7IRT5eBKAHRA5cdoVlHZ6ATr3SeWFhee08fJzKGLCWXR1BuRBv2mymaS8hQmJ4Bg RDIhsST4QyiyWAcRW/+Ni2/Ci6imxhv1s+Sk+R9IfkL4iNwdrN8paNg0J6iIp5EEhq A+r/iUuK8dck6FzmqA6UPyL6nTrlZDh1RWCBZS8LKCcVrcJFHsxbPBU0QCi1Yq7kfS Zk7YV5aL8hE7m0M7SaQyXtSn5pHKS1CBV5vqj4vUnDBdYQ1jWK1mYY4mSG5NwSBLo1 RlW4bEGWHjJS3aFTxzIENKZSv3VTcn4kFW4AZPXNZW8lR/LGEGOGlWBGtU/b83t+S4 el5gQNYVcRezg== Date: Tue, 26 Sep 2023 12:21:53 +0200 From: Christian Brauner To: Max Kellermann Cc: Alexander Viro , Jens Axboe , linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v2] fs/splice: don't block splice_direct_to_actor() after data was read Message-ID: <20230926-achtlos-ungeschehen-ee0e5f2c7666@brauner> References: <20230925-erstklassig-flausen-48e1bc11be30@brauner> <20230926063609.2451260-1-max.kellermann@ionos.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20230926063609.2451260-1-max.kellermann@ionos.com> X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (howler.vger.email [0.0.0.0]); Tue, 26 Sep 2023 03:22:07 -0700 (PDT) > + /* > + * After at least one byte was read from the input > + * file, don't wait for blocking I/O in the following > + * loop iterations; instead of blocking for arbitrary > + * amounts of time in the kernel, let userspace decide > + * how to proceed. This avoids excessive latency if > + * the output is being consumed faster than the input > + * file can fill it (e.g. sendfile() from a slow hard > + * disk to a fast network). > + */ > + flags |= SPLICE_F_NOWAIT; > + Hm, so the thing that is worrysome about this change is that this may cause regressions afaict as this is a pretty significant change from current behavior.