Received: by 2002:a05:7412:d8a:b0:e2:908c:2ebd with SMTP id b10csp2745902rdg; Mon, 16 Oct 2023 13:36:22 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEPd28bEgCqey735Kh6PeBR8dHZLNI0g7vuTeG6yIPE5adVSmW4+Kb/+YGZUVB0HfbOize8 X-Received: by 2002:a05:6870:164e:b0:1db:8252:9063 with SMTP id c14-20020a056870164e00b001db82529063mr254989oae.24.1697488582248; Mon, 16 Oct 2023 13:36:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697488582; cv=none; d=google.com; s=arc-20160816; b=JTgl7nxl+aHM6QO+7brfa6O5V/BqOBnY0M3v7IPY+nEaa1u7yTWkhMOGTTdQbGUWNw iHbqUnwWwB6L+Y+nGT6CVPFGzJJqPERYHOEJ8ZOQtq1teEv5ou/H2aIrdZxnULIudsRG Lk94SQM1y671PMnmHKeOlNYLLyUfIAsFFWrpDQ2JA+Wsjr1RM7MV4dcZ1PsmW2gDUHH8 T2UbVBh51jYExi5TQX9xnkAUieiUiE41uBlf09Nqx4tre9ApaThCQ3p2mEumY6TAR1jf EHHrEzK+iAWPS+2xA0LjKKVbPZxFxpvMyqlmhU4zNKoTMTN2QAMna7tDabthQWfmGEdr 4yOw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:to:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:from:date :dkim-signature; bh=OVgZ8qSxw7ctC1lItSIRvXZLIeEVkvf+UczY6Pev1qw=; fh=TWGmj1uUuQ2Z68kTkEF/Iq99wAblF/0MS/Hplf/0o1c=; b=JBmQx8NJXTc1puI2sLgwn1buUSHA/RA8NxqUKaGOLC71ccQdPG1XG/ANGseGL5Avbc L2aDld8RdBJuIv9YcRF5NMm9/c2i8DQbiOPr/tbWfHaUdc5Ia6eW0BTMI3mDwqL2UVBn yVxnWPGM2OO/5jn1luZnnw0lW+RvXD9MhdaUD7nBBbfbort+GawuXpvDs+iLjk65t284 HkodoBi0tgkAGn8r7WMwnpTkemSWXaVQuw6IpT86BzFl0csNvuBk8/1TBVxwcAC6fHtI Rug+VNk6HOdiWH7YPXqhIQPhy5SYjHkS0wVZJhEoR0FPEPSYQtl5NmlkoZn/VuJuPDxu B2ZA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nabijaczleweli.xyz header.s=202305 header.b="IPYJ/UOZ"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 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. [23.128.96.35]) by mx.google.com with ESMTPS id ck24-20020a056a02091800b00577680ccf1bsi104705pgb.709.2023.10.16.13.36.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 16 Oct 2023 13:36:22 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) client-ip=23.128.96.35; Authentication-Results: mx.google.com; dkim=pass header.i=@nabijaczleweli.xyz header.s=202305 header.b="IPYJ/UOZ"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 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 181F88056C47; Mon, 16 Oct 2023 13:36:19 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at groat.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234233AbjJPUgI (ORCPT + 99 others); Mon, 16 Oct 2023 16:36:08 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52842 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234158AbjJPUf7 (ORCPT ); Mon, 16 Oct 2023 16:35:59 -0400 Received: from tarta.nabijaczleweli.xyz (tarta.nabijaczleweli.xyz [139.28.40.42]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 92D2EFB for ; Mon, 16 Oct 2023 13:35:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=nabijaczleweli.xyz; s=202305; t=1697488547; bh=BL2nvvqmXUiLD1k/WJxDJuoKF37Dds8amZSyjDvQggY=; h=Date:From:Cc:Subject:References:In-Reply-To:From; b=IPYJ/UOZHMjmTbBk0B4ucR9ykxebZ6gj9hCrlA67sv//yW+ch5OYd8tuQ5AEyygEo 8ccEpfpkL6BvcJrN8JKDbIlKu7kf7nQG0QPh38XhGQOYvMCgQmYyd+bh7O17U+alGT 2q53FEEmpgaqR2tOMi8sjPYvQP+UlY+zDvbCd2AYMiylE9pMej5ynHLGFfFcjp5sxH lKGc0BIOJDCHDgtOgGuhDrPMp/pLuNGE6yN3D3ktY2lmnQVvov4Zi+MQ202wvSjIs2 H1d8bgllteTwDIxS7vaGLAUjPabkkz2HqQ40DRTPrdI9HsNE2Zqcdo1UIKoJ9MZXAX aR3O0jsM3QQCQ== Received: from tarta.nabijaczleweli.xyz (unknown [192.168.1.250]) by tarta.nabijaczleweli.xyz (Postfix) with ESMTPSA id CAC2310412; Mon, 16 Oct 2023 22:35:47 +0200 (CEST) Date: Mon, 16 Oct 2023 22:35:47 +0200 From: Ahelenia =?utf-8?Q?Ziemia=C5=84ska?= Cc: 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 05/11] relayfs: relay_file_splice_read: always return -EAGAIN for no data Message-ID: <329ea2aecb56e982f16aea7c637fd0e8a7985506.1697486714.git.nabijaczleweli@nabijaczleweli.xyz> References: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="xgzyovxow36knrrr" Content-Disposition: inline In-Reply-To: User-Agent: NeoMutt/20231006 X-Spam-Status: No, score=-0.8 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS 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]); Mon, 16 Oct 2023 13:36:19 -0700 (PDT) --xgzyovxow36knrrr 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 --xgzyovxow36knrrr Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEfWlHToQCjFzAxEFjvP0LAY0mWPEFAmUtnqMACgkQvP0LAY0m WPELZA//fmLRKbL79Rgf3cwooEXyDV23JKNm0RG3vI8mKBL1P1xRezpHzfnXUf4v 39SzF1bZ7pzlPwI6043qGlI7zS8Eu2nRRkM9SEGH9q0VTNQTNkn4Nh9ytjjrAwLj kL5v69VH0oR7fOHeQc/OHQFZLOpbmVVNgUMN4ClvlEyYCpTPEeIbvBZsQv0Y6ng2 NRX202BF3X1e6DU/RzpScvJhrpiaOhtev1h/IDNiHgzTq7I/hdZ+oDZH7KbCUuta 8f0GRgI453Ux16htD0JVHsgREMTe0CrTsokDY9t+sU2vJDJDiJYuVPw+7wznVUSY 51w31rAauLwpULOOoOhknYSHJcZ3FtPBH4mCvHAj8U5lSTCuXXiAVCAuXmVSn+DV HQxRL6o9yLvGF5lpuHDYBbG6k+bewGZiZ1bUZUdEfT1/jVYO/8jK2p9CJF++j0Uf q8EQdj45/pETs0oyzTftPh1er+bvTJSS8515f9GsNXih4LM7OYiGQcBKL1f0VlZk 3EU0vEG0LzXxGJwJq4AxS5ebTU1G2j9K7G6avtP0VmnJyCVaExzDeOoDTrO/lCkU 7PJxJ+3VPHrd++/QJECAzmHH8CzTz7xTRa9/z/ug8CAkyaXHSuJRemYwLiZWz0wz JTlBUd+xHngIFI048C0rP7Ya+91fU3oN+vHvcfi/8utubswVhNg= =WOMB -----END PGP SIGNATURE----- --xgzyovxow36knrrr--