Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp32230739rwd; Fri, 7 Jul 2023 10:29:17 -0700 (PDT) X-Google-Smtp-Source: APBJJlHIc3Wx4k+o74LuWxALr+1BGl9O+cMxo2gOVdBKpAQwNS3t5YHfJIoVVDd8uoed03gWacbR X-Received: by 2002:a05:6a20:487:b0:128:f513:55ed with SMTP id 7-20020a056a20048700b00128f51355edmr3439267pzc.54.1688750956987; Fri, 07 Jul 2023 10:29:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1688750956; cv=none; d=google.com; s=arc-20160816; b=W93aO+XO1xE7jRA99Ko4RlwIKZYv4Cm1yl/snBtFTMI5+5LlPok6P61Vn7/+D4Llnh mxvGpiKxnkR6ggDfiM0pN+mcH3vVktKjOCfWdJ0QUzRLEdww1nFkG0c6MaSQL8Ge5H3l dPkT3bxRg9/spppnw/oGGo8RWA98DkydOnqEZUM5e8+7nbEsq0+9hV3+/wkE2/lS2E3p 28sEw4kgBYsl0C7EdBvgjEBM+8bIBUy/8Jl7gpZ0BLyIJgBpEKU9P/38y1UpvJjD8edn wog7czbX36UOhSsGJPe+Nnfr37JbLgzlNZM7xZGPtxhwVcyY8cU95tuMWdjoV5tLxw89 ZMRA== 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-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=RhPZo4x2QO0fhgo9GNSyGpdMnNR18JKw0V6b9Q1/1+Y=; fh=VGOXRTUw7dsqOtfBzmxCxec3bnlzgJho1cGgkeug89I=; b=sLFTIshqeoN9VGwUjl5L/lbctwp6UJcYiTHC3KRqJqSoyb1ACJD0umlpPeBcKqcK1F cNaWKPhpnGThWJqGvBXZKQa5JMp01Tf8mF2mcPE50KmRKDR6C9Z0k3dm15sulhrgyVxb tYfhCPMGZYAlAaW+5KEJxtPbEK8YepcWfMtVZ0M+15n7ClHv/W/RhXW4uw4WEfxe7542 E/bqy4q+VdGwiAHg1EYgz6IWiBUXTpgtf4e2fiWvZYkXM5bXzSK9h8qXl/xG8izSTZ/P I4ol5lMXYRYSAc8Cq9lCnCUs6S0F5AZMpKsUj8pNGyyidV5KXBDabtPmnZVf/xD2D/ez okUQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Ybzxb7rH; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id bv8-20020a056a00414800b00652c20d3522si4227496pfb.303.2023.07.07.10.29.03; Fri, 07 Jul 2023 10:29:16 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Ybzxb7rH; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232533AbjGGRVw (ORCPT + 99 others); Fri, 7 Jul 2023 13:21:52 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44556 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229573AbjGGRVt (ORCPT ); Fri, 7 Jul 2023 13:21:49 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2CCD9125; Fri, 7 Jul 2023 10:21:49 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id A9175619D3; Fri, 7 Jul 2023 17:21:48 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 70E18C433C8; Fri, 7 Jul 2023 17:21:46 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1688750508; bh=OrYfHqGh7Yg+DHkaVzcEIwqaXDgud0/nXirOe74xyjY=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=Ybzxb7rH812Lx5wUW0LUaiThsvzJbSvt6IM4/LcBRVK7YJMj4hw/0PHj8z6n8ShfR UssfSMBdAop0N7gcaUKk7wfk0n+wp4OWntJkeZCQWbmrHzUp4+BfsrmqFMhLza0eY2 GZjTrZV2Fnv7UuVTDy0bIeZPKmAYPGWUcy1dzFrXwzeMSn+pkEGDvnj9Ht7ivDY0aD Mzh94jt6oEqJfHnxC5qMjHkD21T+7yGRI4H4ddYZAjSVkqz8r1H61bba1w/RxTUWzL 4Py/9OFtKNGal/Kdt8i0UP/e28xCEugb/SKOTLfVBr61naGjWucgpqfKFk2+0LrDU9 +1tDTMJGfGepQ== Date: Fri, 7 Jul 2023 19:21:43 +0200 From: Christian Brauner To: Linus Torvalds Cc: Ahelenia =?utf-8?Q?Ziemia=C5=84ska?= , Jens Axboe , David Howells , Alexander Viro , linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: Pending splice(file -> FIFO) excludes all other FIFO operations forever (was: ... always blocks read(FIFO), regardless of O_NONBLOCK on read side?) Message-ID: <20230707-konsens-ruckartig-211a4fb24e27@brauner> References: <20230626-vorverlegen-setzen-c7f96e10df34@brauner> <4sdy3yn462gdvubecjp4u7wj7hl5aah4kgsxslxlyqfnv67i72@euauz57cr3ex> <20230626-fazit-campen-d54e428aa4d6@brauner> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Jul 06, 2023 at 02:56:45PM -0700, Linus Torvalds wrote: > On Mon, 26 Jun 2023 at 09:14, Ahelenia ZiemiaƄska > wrote: > > > > And even if that was a working work-around, the fundamental problem of > > ./spl>fifo excluding all other access to fifo is quite unfortunate too. > > So I already sent an earlier broken version of this patch to Ahelenia > and Christian, but here's an actually slightly tested version with the > obvious bugs fixed. > > The keyword here being "obvious". It's probably broken in many > non-obvious ways, but I'm sending it out in case anybody wants to play > around with it. > > It boots for me. It even changes behavior of programs that splice() > and used to keep the pipe lock over the IO and no longer do. > > But it might do unspeakable things to your pets, so caveat emptor. It > "feels" right to me. But it's a rather quick hack, and really needs > more eyes and more thought. I mention O_NDELAY in the (preliminary) > commit message, but there are probably other issues that need thinking > about. Forgot to say, fwiw, I've been running this through the LTP splice, pipe, and ipc tests without issues. A hanging reader can be signaled away cleanly with this.