Received: by 2002:a05:7412:d8a:b0:e2:908c:2ebd with SMTP id b10csp2745894rdg; Mon, 16 Oct 2023 13:36:21 -0700 (PDT) X-Google-Smtp-Source: AGHT+IH0L59Osw8cL6/tOLB9T5AIPHprxgIb9KNV4JJ71ZX1ZUVWC5XXZTuWyU1lu4fhzCr282ah X-Received: by 2002:a17:90a:5782:b0:27d:273f:779c with SMTP id g2-20020a17090a578200b0027d273f779cmr248854pji.47.1697488580573; Mon, 16 Oct 2023 13:36:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697488580; cv=none; d=google.com; s=arc-20160816; b=E4vkic+pza59tkhPiWKnGJf0weAB8sFoTmQcNacS438p1Ph7Wdq1daCyx0qwWk7qY7 mikskpuCQHY34/u8m8c1T1vnVDJ0WowlNL4wkLzALLL8ioxHLXuEYA26nbZ0ecmkWl7q S5Vo6Quk5h/QHq0p3zqK/KnV/DxZB/gvd0igsT9Fz0JWFRCxad5Q4K38g3IuoEvzA4Km KUuRdBWC8vm77/37XPNg83W3qEA0l8hyXxX+lVtPp4K8+m+KocBCfAduka4DuKxjAbaV PqsNpFRQObeVCln+u6l8sq+W1ATBMam8PDOJhNzK5yhp/lIxCW/NJkKdTkoRvADv9bvC KKTA== 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=LUkO08QFdMGYAkxVRZn7tBXVRIVroY00ER7dOpVVwWs=; fh=Oskmylf92gQgoWcJVK2DZkdbYki3SlnV/gEzpmChMXQ=; b=kHAYNZ6IPr0Z8ntegZEUwZVCguRg+AFTRfT2EVSE6Yif6UHuWuk7AQa48kqSCIlgoT AYEQkjLmDeVGTk8Lmb731ovC4+taJw/RCjU7Wxj3iabUguchktdBhfrbDew5WdxyXrSb E/dSsxRagVTwSa6ct5U/izh7gCUexHl1Fqw9VTHYjeki7MK4nQimlXkJAucRge0SNz+W Z8PzpPVKjX6Fgy/MMjFFeW84fiQseka7jNkbze3bzxbPOQoVxsfWgCnA1nqfK7PZMgGQ Ow82bQ8bIjL/ig+voYDQLaDacCh10IXNPhmfWYnEll2i4jP95MZi8YsOgzrNtQpMO77z OkAQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nabijaczleweli.xyz header.s=202305 header.b=C90GcxUM; 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 15-20020a17090a01cf00b0027916d248bbsi46783pjd.162.2023.10.16.13.36.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 16 Oct 2023 13:36:20 -0700 (PDT) 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=C90GcxUM; 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 39507805196A; Mon, 16 Oct 2023 13:36:06 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at morse.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234001AbjJPUfr (ORCPT + 99 others); Mon, 16 Oct 2023 16:35:47 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56674 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233280AbjJPUfo (ORCPT ); Mon, 16 Oct 2023 16:35:44 -0400 Received: from tarta.nabijaczleweli.xyz (tarta.nabijaczleweli.xyz [139.28.40.42]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 12A5F103; Mon, 16 Oct 2023 13:35:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=nabijaczleweli.xyz; s=202305; t=1697488537; bh=Alm3zmAVynjk8wk0prJ+3hHGU0F6PYlx1LJH0af40nw=; h=Date:From:Cc:Subject:References:In-Reply-To:From; b=C90GcxUM6lHvAoH/AV87Tw0bEuMMpniry7O2C1sQXd2Ss0UcHJDrMIz+A0VTmZ4+i WrM1fIAWn3ZGFsHF+CG7BRXBXoV/cB/OTlCrlqyfioSxLmDK4xXrwGWi0+rsry14AH otEtVRC4SPvlxKLDqTtwwwmtqFWSL7aWEnVTbdJ7K5vdxyoEX3iJFY4iQtA4RqqQzi c6hhcKuoUx7aHL7GoJYj1oMcBpDBRwmkkGTDqrjd2YGBLtY069IrnDwj+eQwu4Jn9+ bs0v1rDRKY5BuMIHAkjGE8L0/VsvX2nZ95w9uoXb6Yx1CFK6QJIGp1/34899mmG9iG RHHBFrY5ounbg== Received: from tarta.nabijaczleweli.xyz (unknown [192.168.1.250]) by tarta.nabijaczleweli.xyz (Postfix) with ESMTPSA id 3EADA10406; Mon, 16 Oct 2023 22:35:37 +0200 (CEST) Date: Mon, 16 Oct 2023 22:35:37 +0200 From: Ahelenia =?utf-8?Q?Ziemia=C5=84ska?= Cc: Alexander Viro , Christian Brauner , linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 01/11] splice: copy_splice_read: do the I/O with IOCB_NOWAIT Message-ID: <9910c8026500ba43f3d93e66e822ae64980d9527.1697486714.git.nabijaczleweli@nabijaczleweli.xyz> References: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="26wv7mk76hokbeym" 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 morse.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 (morse.vger.email [0.0.0.0]); Mon, 16 Oct 2023 13:36:06 -0700 (PDT) --26wv7mk76hokbeym 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 --26wv7mk76hokbeym Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEfWlHToQCjFzAxEFjvP0LAY0mWPEFAmUtnpgACgkQvP0LAY0m WPEeiw/+LGihh3VzXbGXJt1xP3uYkNdlPePOwrGEHJbYmH1qaP+Q2KLYZLTvCJso 8vCQ1OdEH1gkeyxl12tYVhqXO0P1qg0VR2H8i0Watgch+fDEG/BOeoSRlB0j38xM myyJAc8IvQl5NMOqQU624J4KI728C7yQ7aTZzz/CorK9Rf9u8wMxXLPLKRo13Egp SDSe3pBW53Lt1nzwXw8CVgl0ya5uzLy4HYhfReuw8wh4hozguvI67WXPtXwc9hGI NItKumUw8VvfjzxhPyl2+5N+SYOB/ZrvQxYjdsD9FHnOzC2y/5CjJDHbnL2erV1V scdMse+FDuwx8n88Ydq/R8W5NZkl/52N7loPFWc9BZrSXlir5AN0vrzB2hd7iYMx /+3W7c4iDMnlcn6LY5bf8He6gOVsD/IRaZFkXzUzZpFmzn3O9j7/S2LRKDlAZWvc YyVoYjRfrkeF92ALivESOrZ0g/feGn0YGEyl6q2Hnjca7gfSHqTG8LQMXrT0O7mG Kl4IwS2Sz1sybC9YmG4KNBHGefGlV0js0/hUR8Wq3SHDnombaNDYaaH+3CS9QfCT gEtegDa3N/dF1U3xsfCZyRmdn0WdFEHBg+OpEWC2yJ3LKbWI2c4zjmn31+UHMpwX ygfb01wnyWb/QvFmSzASjhdC7jKvVecAOsspp++YNNHMJDFZ5S0= =aeXE -----END PGP SIGNATURE----- --26wv7mk76hokbeym--