Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp4534494rdb; Tue, 12 Dec 2023 02:13:16 -0800 (PST) X-Google-Smtp-Source: AGHT+IH1Qe76zpw1OiWLwTl0JHtnhAP1Yf76kW41Q8Znsf8ZKCUVTbG0MV7QO6HZ1JGFNh//R3ed X-Received: by 2002:a05:6870:c14d:b0:1fa:2fe1:a8b with SMTP id g13-20020a056870c14d00b001fa2fe10a8bmr6929416oad.7.1702375995976; Tue, 12 Dec 2023 02:13:15 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702375995; cv=none; d=google.com; s=arc-20160816; b=f1aIU5ijNJU9npEPciqpCO/fYbjtIj6ga111VN0Docs68PgN+d/IjMnfc+7QnUm8Rj KxIM2qMM/Zw3On8mHIw+VmQV7Aw/pne3tyU8vAHi0vA2sG0001MuWSFc3Y8SPVrgs4Es U/cpvq1t3G8TKIUdeTWFEUxLLhnj1lLCJKGhwRx5J/y5foZ9iZKhtvqMospX9g+shu3n hMvzKbmFRYcdB04CVPykD+HgasqioUGViWxxl73OdSxtyh5REaosBMsOh15iH+iGq33Q sGBRv4/nX/uIzaf3TWlkTEE6tf1zy4vO1QLEoCChxp0KQ0POvO4j5E0Sq+iehi3hgst+ KBIw== 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:user-agent:message-id:subject:to:from:date :dkim-signature; bh=w1cJAF0mfjqt4YJReeldSqLgO24uRvVIGTtmnulln3g=; fh=PRK3jTUt9N5jyBQTqAuE8MsqYFhEmwIUMV99uXQgzDQ=; b=TyyzrMAcK9WZBDka+xmjWntcAiteuWFXl/U8HjSvWFyp+1uOJ2zsvYhXeHLxyVazVE bPKizulBwLXHmNxn4izMXOVkDSdRQRp39Fu5/UrUna3JAz1glN83YQKTcz5jArw0h+IE nIt+0jI6lHGo8o40NlXwDbesBjHip3iUCfK2JprMzTiQzDhCEfX9pcwzjySbJyaBYCci RRu6G0JETP3vws/+ed+jrDwxaviJRo1Ja6aHoeWJdyYcHT2MMI+eTj+sbyv7BB3iP3LB 5nKdlvj2L7VVPzPD/q4SVGqy6N/1WBndZZ3vSLtJmTUfJa1sTimnaEl7rSU4xI5R3uHW prcw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nabijaczleweli.xyz header.s=202305 header.b=BwRRiYuw; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:1 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 morse.vger.email (morse.vger.email. [2620:137:e000::3:1]) by mx.google.com with ESMTPS id j4-20020a654304000000b005c66a3f3f5bsi7246635pgq.745.2023.12.12.02.13.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 12 Dec 2023 02:13:15 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:1 as permitted sender) client-ip=2620:137:e000::3:1; Authentication-Results: mx.google.com; dkim=pass header.i=@nabijaczleweli.xyz header.s=202305 header.b=BwRRiYuw; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:1 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 morse.vger.email (Postfix) with ESMTP id 4DE4D80219E0; Tue, 12 Dec 2023 02:13:11 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at morse.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235062AbjLLKMr (ORCPT + 99 others); Tue, 12 Dec 2023 05:12:47 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46292 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232401AbjLLKMk (ORCPT ); Tue, 12 Dec 2023 05:12:40 -0500 Received: from tarta.nabijaczleweli.xyz (tarta.nabijaczleweli.xyz [139.28.40.42]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E4503CD for ; Tue, 12 Dec 2023 02:12:46 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=nabijaczleweli.xyz; s=202305; t=1702375965; bh=r6v4V7TG0K5QA6721m/OqT6YeC6Z7JGT8NJQG21F+Oc=; h=Date:From:To:Subject:References:In-Reply-To:From; b=BwRRiYuwPmzotudPpKPH4azD87QWkZGv3a2fzKAHjMSCxM0ceqS3BCpmR7J4T9Spy /TNZvnENBm+IIDdipEsGERTB9XZkUIFBeHa87JDqHe2eH47bUZ72B0qT4gCluS4k9E lI207u8gEPCIUwumwUn4BLpmx8WF4D5+5Pp6OHoq/e4mcDHx3+xjPSSAcyfvU4sSKY zqnQtSsdfPYIMtq9DmNIKmB07Rkx18TxfG3+9rAoW4zxXL7i0IabYD0r8NhAIlkJq9 5eCAKpYUhzT+W2rSuIh943f2MNGUmuTTdJNMvG9pmniXuHeH+vIk+Z5mrEmhSnmtRc goBjYag/0Ec+Q== Received: from tarta.nabijaczleweli.xyz (unknown [192.168.1.250]) by tarta.nabijaczleweli.xyz (Postfix) with ESMTPSA id 9737512F6E; Tue, 12 Dec 2023 11:12:45 +0100 (CET) Date: Tue, 12 Dec 2023 11:12:45 +0100 From: Ahelenia =?utf-8?Q?Ziemia=C5=84ska?= To: 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 RESEND 05/11] relayfs: relay_file_splice_read: always return -EAGAIN for no data Message-ID: <1329ea2aecb56e982f16aea7c637fd0e8a7985506.1697486714.git.nabijaczleweli@nabijaczleweli.xyz> User-Agent: NeoMutt/20231103 References: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="lq6cka4fydlxngyz" Content-Disposition: inline In-Reply-To: <1cover.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 morse.vger.email 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 (morse.vger.email [0.0.0.0]); Tue, 12 Dec 2023 02:13:11 -0800 (PST) --lq6cka4fydlxngyz 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 --lq6cka4fydlxngyz Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEfWlHToQCjFzAxEFjvP0LAY0mWPEFAmV4Mh0ACgkQvP0LAY0m WPGKkQ/9Hq4HNudvdkp6qVB8/3O5li0VWw6lbJvgr5xOoDPcj9q4tUmcoChkzELa PSk6VzQOTgLlWAzOJJy2yqK4TLkPCE2UR1EIJAVxf6K1U1q2paDvsTlvKhjJYDBl c0iRyYnnW+vSTuymLYrvlcnUjLS+Wvhdl2RThn47TVXeU3glI9mQBp0twym80v7Z xqa8ltv/DOl6OgUVqH6Y125mnO7LcAvxM1Gl3GH4yni9panCt3aqsLuqZVwpfbbL uG9EQzicDySoSoFqlzNLJpq79zIIGmGlx0IXJMkKNG7i+PG8ezbslgkVBcvp+sxp VBdWGvHHv4HfarPRW79TZERKn6wA0yELAgeXp2zAjWVVCowegDalI/BaiSf3eBet dDI2Dpb+E9vMWjTVZYML9VmLzKHC1xC9FEIhp4veTJ4BiRG4siWn5YAx/2jB7dca vjR50B5dqatLF05rusGxXAhHiDCcFBVLBtY9YaSD2pO9Qmdm4nyefK1IYnSlFvtn pOQGBFCNcdawxVeqGL4wHD+aSnj725dOMOWlZ3h0ZhjMJgv3FGTDccyTYnN9qw8d N5Mjz9gXoKP5X5qFKPc3Q+qTozWhsK//VuxCPn0HNQsYUy3aAJT+qQZx8ovljTST puREaWRvBXUVkxhTB6MH2s0Y1VyOp1/n5agn8NUn74iBaIFl6Cs= =gxeL -----END PGP SIGNATURE----- --lq6cka4fydlxngyz--