Message ID | 19910c8026500ba43f3d93e66e822ae64980d9527.1697486714.git.nabijaczleweli@nabijaczleweli.xyz |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:bcd1:0:b0:403:3b70:6f57 with SMTP id r17csp7622854vqy; Tue, 12 Dec 2023 02:13:05 -0800 (PST) X-Google-Smtp-Source: AGHT+IEwjWFTeiHmeo65EUxD8mP3xadmRYXHxGXA3zzGp67p8PxURP6j77cmQbuqwSKdwzyw4my7 X-Received: by 2002:a05:6a00:139f:b0:6ce:725f:7d9d with SMTP id t31-20020a056a00139f00b006ce725f7d9dmr7400637pfg.14.1702375984991; Tue, 12 Dec 2023 02:13:04 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702375984; cv=none; d=google.com; s=arc-20160816; b=caQK0huBYRqHesxqiEehHDzXQvUaoleQjFPA+XlMImV+MpKr2D8r1bhbji6l4Za2rE 9lC+N7TApuMNIfYLNkuKpwc6rwfFkiy2KZnicD7qh5nQb5M7q+PZggLevvquOtdghnCG Y21waMasbz2+zPq6Yrqy/zt2fa3bATJqKYE1G8V8DJl68Gnn9yye2NppE+ucjcdce1Mn n/pG7AGii9cIC0fpsrfsjbs+DsO/0EKyciIpMpYYltElAv50CNjCqLIA78+L6Q5TLdeI 3o6+rDu4lQW0zKow3iow9279YDVw5y94S56624c5o+znVyiyWhDT5xPu9uYU1abt69bE ESOA== 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 Received: from pete.vger.email (pete.vger.email. [23.128.96.36]) by mx.google.com with ESMTPS id o9-20020a655209000000b005b8ee1c0c67si7312567pgp.594.2023.12.12.02.13.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 12 Dec 2023 02:13:04 -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 69B2B80CF545; Tue, 12 Dec 2023 02:12:56 -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 <rfc822;dexuan.linux@gmail.com> + 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 <rfc822;linux-kernel@vger.kernel.org>); 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?= <nabijaczleweli@nabijaczleweli.xyz> To: Alexander Viro <viro@zeniv.linux.org.uk>, Christian Brauner <brauner@kernel.org>, 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: <cover.1697486714.git.nabijaczleweli@nabijaczleweli.xyz> 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: <linux-kernel.vger.kernel.org> 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:12:56 -0800 (PST) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1779945769419789839 X-GMAIL-MSGID: 1785070600729847510 |
Series |
splice(file<>pipe) I/O on file as-if O_NONBLOCK
|
|
Commit Message
Ahelenia Ziemiańska
Dec. 12, 2023, 10:12 a.m. UTC
Otherwise we risk sleeping with the pipe locked for indeterminate
lengths of time.
Link: https://lore.kernel.org/linux-fsdevel/qk6hjuam54khlaikf2ssom6custxf5is2ekkaequf4hvode3ls@zgf7j5j4ubvw/t/#u
Signed-off-by: Ahelenia Ziemiańska <nabijaczleweli@nabijaczleweli.xyz>
---
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 = *ppos; + kiocb.ki_flags |= IOCB_NOWAIT; ret = call_read_iter(in, &kiocb, &to); if (ret > 0) {