Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp4534495rdb; Tue, 12 Dec 2023 02:13:16 -0800 (PST) X-Google-Smtp-Source: AGHT+IEWfG6n8XtI4FHJJBKqG8kBo88K8gXHbB3nglIotb1Uk0DtR96e5WnEt3jlT+mHSiQFhnbI X-Received: by 2002:a05:6a20:9147:b0:18f:ea5b:6844 with SMTP id x7-20020a056a20914700b0018fea5b6844mr7949848pzc.76.1702375995910; 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=0TctahzSLlxUBnan/S1XvQT4q9dUk3Bc3gtcHWOBs9FhB8Q+1dr19YNbUA1pBwQ89B VWWn4DHZucjl9rqkU2ewyEwDk3YCIDoSXNAsjqeEtUa+kYGeiINmPLxEfMMmT9qS/W/5 +4c01R0RFVe5KbUtB1EnRT2BzTm/OKXlaY3pAxvuHdq+S85QtarqledJTzhHo422Ed9m sGL6E1sjXtZNAOXLY+HAye98jRU40lFDBy8LjIr2jhQMxHIqXjEid//KagLZfR546WPY cEEUFHQV19ZvnbTNRRvRUkrFWizNCfRQZzbXXpS23x63bKOlfN0jkm83zhHpUCjK4a4a RdPA== 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=djB3UWX2KbdGq0Pa3uvK6+f/xhR1DsgKQg623iEdNbE=; fh=c1hve9LK7bidUltaxotdOOkNtWZ8Drk/KOyPdUWU/OI=; b=CRX19XuqONtXcB9Cdn1F+j79QUWgESKlIlUzUfC3LO6mDqehJboJTgPkgZZDxjspOo KtEQlz3Q/PvLZwNJHn5lcvFw/RuUYmwBXhvz5DpcbtdCSV8FAxWy37fkDYMFLDkdo3wE C4444QecFplwOtCyjxis81IyoXmnCWwEuP8NB9LwnYIftdxqTfefsaDjFCAzCBlUgx2u wKJbKOjS7ljg+dQz6JbjEYrRyP2FxS2bjBSAhqyqBWP/1ybw2cyIwhNKKwcrac7DE5P3 T3H607cx9b5D5QDHhv+4oH53V3XmI9DxyJtlA0BFql+KHBqU11ReXgs32rCqqWnXRvtw m8/w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nabijaczleweli.xyz header.s=202305 header.b=LJxubxPL; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 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 pete.vger.email (pete.vger.email. [23.128.96.36]) by mx.google.com with ESMTPS id it24-20020a056a00459800b006ce707e00d3si7556509pfb.241.2023.12.12.02.13.15 (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 23.128.96.36 as permitted sender) client-ip=23.128.96.36; Authentication-Results: mx.google.com; dkim=pass header.i=@nabijaczleweli.xyz header.s=202305 header.b=LJxubxPL; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 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 pete.vger.email (Postfix) with ESMTP id 9C0F080CF506; Tue, 12 Dec 2023 02:13:12 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at pete.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231546AbjLLKMb (ORCPT + 99 others); Tue, 12 Dec 2023 05:12:31 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59046 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230508AbjLLKM2 (ORCPT ); Tue, 12 Dec 2023 05:12:28 -0500 Received: from tarta.nabijaczleweli.xyz (tarta.nabijaczleweli.xyz [139.28.40.42]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D42C79C; Tue, 12 Dec 2023 02:12:34 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=nabijaczleweli.xyz; s=202305; t=1702375953; bh=4W7u+rDADbbJkWobBhlJPUHFhHQq5S7vzstWfOqjssk=; h=Date:From:To:Subject:References:In-Reply-To:From; b=LJxubxPLaxOr7sailyjIGDn+LExkcMhhNvGORanAehnhW0OUH7vKXnHMX/aZRUBtp pwgxidzvWNVMaboCG5E7BVf0/wlxXQnv1ANoTO0NkJAU5jYF2MXmUlOWFwPuJ4+lEu Vs8Bs/hdpJd9wgWhGOagMgmb5jhX59JPPMOTD+E1f6Q3spcKsMWjpUNEsP2xL4uV4X ShEYZQXpsUS3X9co4oU1wyXQs7mSBywQpoubPBOZzlK5HOiogOLpd0tUJrpnVsxPM+ Mobd/QpmVm9el7ZTVtFajy3et27vJjQWjosb8jVceoJzPmZEu3U4/PgC4wCwkZyoKQ 0wa9bYmXe4qIg== Received: from tarta.nabijaczleweli.xyz (unknown [192.168.1.250]) by tarta.nabijaczleweli.xyz (Postfix) with ESMTPSA id 8357512A76; Tue, 12 Dec 2023 11:12:33 +0100 (CET) Date: Tue, 12 Dec 2023 11:12:33 +0100 From: Ahelenia =?utf-8?Q?Ziemia=C5=84ska?= To: Alexander Viro , Christian Brauner , linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH RESEND 01/11] splice: copy_splice_read: do the I/O with IOCB_NOWAIT Message-ID: <19910c8026500ba43f3d93e66e822ae64980d9527.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="3cvtmoaqsrgnkrir" 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 pete.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 (pete.vger.email [0.0.0.0]); Tue, 12 Dec 2023 02:13:12 -0800 (PST) --3cvtmoaqsrgnkrir Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Otherwise we risk sleeping with the pipe locked for indeterminate lengths of time. Link: https://lore.kernel.org/linux-fsdevel/qk6hjuam54khlaikf2ssom6custxf5i= s2ekkaequf4hvode3ls@zgf7j5j4ubvw/t/#u Signed-off-by: Ahelenia Ziemia=C5=84ska --- fs/splice.c | 1 + 1 file changed, 1 insertion(+) diff --git a/fs/splice.c b/fs/splice.c index d983d375ff11..9d29664f23ee 100644 --- a/fs/splice.c +++ b/fs/splice.c @@ -361,6 +361,7 @@ ssize_t copy_splice_read(struct file *in, loff_t *ppos, iov_iter_bvec(&to, ITER_DEST, bv, npages, len); init_sync_kiocb(&kiocb, in); kiocb.ki_pos =3D *ppos; + kiocb.ki_flags |=3D IOCB_NOWAIT; ret =3D call_read_iter(in, &kiocb, &to); =20 if (ret > 0) { --=20 2.39.2 --3cvtmoaqsrgnkrir Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEfWlHToQCjFzAxEFjvP0LAY0mWPEFAmV4MhEACgkQvP0LAY0m WPF9Cg/9EffrwGSBBwc94UVX9562toxZU0cTfGiMv1uKHdSNskGZYRfejpTiN74p n9uDBaV4gmogC62cBg8Z/mQgwjMsOkuWw+6c4JyfR1CSVSOIyBcuDxcMRK8nz5qB YTKOOiYM3/agWDeDMPp3c5EORR8chn6zq/x9EIySRaOO35WPaBuIGKtg3NAI3Msn HMVEYidGQjTVbi7mCO9rij6XLh8sWOEJQ1NvURp2Jh/K53Vyuqn9BuiGm/WKf3uI tBsXci0eUYHndhHFVs9S0TxS6aDqGXuPfKZBb+JlMCDTJIeSceTMFJNvjJ6jrpSM BT0cD0FAcVDDXhZ7+q75zm7Ha7Vu0V4CAFbMKcYbiFjkudcN5XHLLILHB4qwSEfE yn7DKo/6llYuykrTWZDn0myZgMRb3mtajqzXLc2zeS0gaKvKaQxZDOQBDmoBRS74 1xKTN+hwAC46Ryo8Memut4QWb5bBmElKlDL3c0flqBHLwHzxb77sSckSs81Bixgi RSGr0fUP1hhzPQ2B0Ikb1I+KlwP12SzcNcc0cSxrEI2WX6buD3enTQiD3aV+ghku Jp2Fecr99J/KmKjRzbjjmol9Zb/b3tKySzUQGKSWw7O8Xl/v9w19vzS46ETSkcYj VKnQkRRfMGT92EZyH5WnhKkQK6zwgRn+mOa9jVnPs13B0fiH8M8= =EBxL -----END PGP SIGNATURE----- --3cvtmoaqsrgnkrir--