Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp6196395rdb; Thu, 14 Dec 2023 10:46:32 -0800 (PST) X-Google-Smtp-Source: AGHT+IHr6GU5Sc6UBkRXCOa10CU6jGLgUePr3GpzBmrpxu1jPVPO+ZHanzXyrz0klJtlpLjsWlf+ X-Received: by 2002:a05:6e02:15c5:b0:35d:59a2:bd3 with SMTP id q5-20020a056e0215c500b0035d59a20bd3mr9387301ilu.105.1702579592189; Thu, 14 Dec 2023 10:46:32 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702579592; cv=none; d=google.com; s=arc-20160816; b=k50xAFbFLjfq5EmBHZSBLNIlwlsl7bRcQ0f8w5SiZf2DGwl/X3wtfs/eHO8KlwM5WT xJdodZMqxBgA1zSK3BSCBMzZtT7XRksUFLBK/bu3sZKVTmHDONLq1u58xZm1FHKY0cHf 192sK1PgONUYHQj8fE5i2rTT68cFxT01JMlFmDeJNboyJAFPlzaHGNM0wy8lhnBSn4CR LUfP2w1HJZ82TMiIATXzbOGjPcS1zZUIDgWlpkM0IQvWqIQCFflwoGsSOALwAmBm3SLO 0MNiDsf0t5QocgQfWxaoXg9gD+gqjGbnq8A0VhMzkUSZXC4P75akmG1VdYwaQXYEzZWK QsZw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:to:in-reply-to:content-disposition:mime-version :references:user-agent:message-id:subject:cc:from:date :dkim-signature; bh=xXi0fqckUJZw3tezszpmiHvDPsWSjXS3YM58O0X+Q0Y=; fh=XDyHGiV6UcMMQgvXzqbF+yD5NmVlSQZ/RYvJDz+0sIQ=; b=bc3xZEy+XfTmqs1WtQbErOlVTzZByq+chrpxtcUpD/Q09uxtTdxHBrc+bkXYV5e/he D2wxoR9vO1KmAqZUESXtOXVGoOt2Y54VlkWh0Mbd0ffuX50opilsAFwTrNhTpEWsIAu4 bWmqk3dInR0zGQ5XMX7hDYkgHJRcnO15Y5DF/0GZl07u+cojdZXZCK4jGBDfWuZnZk6D WUAzR9mzsCvPWfpIb9VEJSujVJNpS4LglHacZT9o8OMfy7wcYnHquF3qeSdNZOd3hDou 7pw2l2a0z1ptWhiNXIv/aX/RGXJ44Cf0wdOjc6jgotXIDF7EXLjeLf2YGob4NSttHV8b 3weQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nabijaczleweli.xyz header.s=202305 header.b=QQwQ7kVs; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=nabijaczleweli.xyz Return-Path: Received: from groat.vger.email (groat.vger.email. [2620:137:e000::3:5]) by mx.google.com with ESMTPS id a11-20020a634d0b000000b005c621f7280csi11542049pgb.466.2023.12.14.10.46.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 14 Dec 2023 10:46:32 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) client-ip=2620:137:e000::3:5; Authentication-Results: mx.google.com; dkim=pass header.i=@nabijaczleweli.xyz header.s=202305 header.b=QQwQ7kVs; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=nabijaczleweli.xyz Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by groat.vger.email (Postfix) with ESMTP id A3990826FAF3; Thu, 14 Dec 2023 10:45:57 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at groat.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1573200AbjLNSpQ (ORCPT + 99 others); Thu, 14 Dec 2023 13:45:16 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58050 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1573282AbjLNSpA (ORCPT ); Thu, 14 Dec 2023 13:45:00 -0500 Received: from tarta.nabijaczleweli.xyz (tarta.nabijaczleweli.xyz [139.28.40.42]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4729518F; Thu, 14 Dec 2023 10:45:06 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=nabijaczleweli.xyz; s=202305; t=1702579504; bh=2ssiVml4m8qqmo285KKEoUuoX6hT0FelEWEeDIquwac=; h=Date:From:Cc:Subject:References:In-Reply-To:From; b=QQwQ7kVsirDbfrc3qHB34GkO3GIFQTUF/vVWaXTL/s5rXafsrY3xyV9wYGYQw6HE/ ee4penYF7q4qAgMlMeUkYnDYfVtqNkPvfxpgAm7dd0HewSWdnH4LUcKglTmgoSaS0f XIDSyCBKMi6S1fAjqdPtNgoDO6WjfMG/dlRUn1N+QD0EOGZiLN+MWnpBwJYpVOA4CT DbRwvoAKPmKFmvxFpm+p/bHNtncRBSTw+2S+L5aaCDpYOHvtOu09tJOwycBNkRyspd 78rfnsknZQ+OLAhKmOl9E673CaExiP8CZCuqy994nyfaU/kBnZqUpkS+fSEahYSKn7 YJsxSs1dxmbKw== Received: from tarta.nabijaczleweli.xyz (unknown [192.168.1.250]) by tarta.nabijaczleweli.xyz (Postfix) with ESMTPSA id D6DF413794; Thu, 14 Dec 2023 19:45:04 +0100 (CET) Date: Thu, 14 Dec 2023 19:45:04 +0100 From: Ahelenia =?utf-8?Q?Ziemia=C5=84ska?= Cc: Jens Axboe , Christian Brauner , Alexander Viro , linux-fsdevel@vger.kernel.org, Andrew Morton , Hyeonggon Yoo <42.hyeyoo@gmail.com>, "Liam R. Howlett" , Pengcheng Yang , Zhang Zhengming , Xu Panda , Li kunyu , Gavrilov Ilia , Suren Baghdasaryan , linux-kernel@vger.kernel.org Subject: [PATCH RERESEND 05/11] relayfs: relay_file_splice_read: always return -EAGAIN for no data Message-ID: <2329ea2aecb56e982f16aea7c637fd0e8a7985506.1697486714.git.nabijaczleweli@nabijaczleweli.xyz> User-Agent: NeoMutt/20231103 References: <2cover.1697486714.git.nabijaczleweli@nabijaczleweli.xyz> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="r7skt7wykof2z2de" Content-Disposition: inline In-Reply-To: <2cover.1697486714.git.nabijaczleweli@nabijaczleweli.xyz> X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on groat.vger.email To: unlisted-recipients:; (no To-header on input) 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 (groat.vger.email [0.0.0.0]); Thu, 14 Dec 2023 10:45:58 -0800 (PST) --r7skt7wykof2z2de Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable For consistency with the new "file->pipe reads non-blockingly" semantic. Signed-off-by: Ahelenia Ziemia=C5=84ska --- kernel/relay.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/kernel/relay.c b/kernel/relay.c index 83fe0325cde1..3d381e94a204 100644 --- a/kernel/relay.c +++ b/kernel/relay.c @@ -1215,8 +1215,7 @@ static ssize_t relay_file_splice_read(struct file *in, if (ret < 0) break; else if (!ret) { - if (flags & SPLICE_F_NONBLOCK) - ret =3D -EAGAIN; + ret =3D -EAGAIN; break; } =20 --=20 2.39.2 --r7skt7wykof2z2de Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEfWlHToQCjFzAxEFjvP0LAY0mWPEFAmV7TTAACgkQvP0LAY0m WPGpIBAAtgSY2hCgLEKlAVjEfl1/tbiE3LuNlXrzoW7favgFzE8BZ6vY8XVnKgdc cIZxw5f3ym3BxK48mh1d2rqxuW92seUTF4zAsIz82xt4DC+72FYH5rXQqrS7svZs FvxSBpm6OduP5vib1Ef3kfXkE4kI2HzlkGOhyrmThQ7c9f8HTNu6HGcHtqZAMUGC 5jnukq361XsjFi+MxIais0Zc9SVW4P3sx4SM6lGosiCCwhg8AF1n8BFqn1X4tzSy jLKxPqDytA2ngC/j9/A+SlkPK5TSxHpy+o95YDCxtQziSmrkoTDQq0/WdiE3Hjul NK+z9kbYvbx0VX0cll6zBiByBlnn2EZ2LBlL0Hxj9PE2/ilISjwSYpn6kI+/CgPE ylp2qkDcYeBrQ+BQefgivj0xM+zEnwSIOGIAnw4AT0L407X7QfKW2ZYfr29psds+ 11B+eKjI2GsGXQleAzrRKHu1Ig3mXPR2W4L8N6o+HpvQenjbNB2KPOVAdcGVidNQ 0aVmKToGwBMTuyHcIayRmkuVr3qbIW+czzBnUebPORF3R0GdmkINBzsDXJPK+AZ0 ROUOG4WiITeauhl/wiBC/E6OvgPgBu0BvVc5VxNc3xusVdfI67APOZrw0MSqYAwW leCU6koppIyQkl6fLzEq2IoOTkWXoiXr2IORy4N7YyzHjQrZXF8= =CQg3 -----END PGP SIGNATURE----- --r7skt7wykof2z2de--