Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp32583080rwd; Fri, 7 Jul 2023 17:03:57 -0700 (PDT) X-Google-Smtp-Source: APBJJlEyn2ygKDxc0IpurAN2k/to49hz11+wezi8l78irGRR8gnPhrwJ1dJ11sr1mHrSo+JdMlZ3 X-Received: by 2002:a17:906:fa95:b0:978:8a30:aaf with SMTP id lt21-20020a170906fa9500b009788a300aafmr4161313ejb.64.1688774636992; Fri, 07 Jul 2023 17:03:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1688774636; cv=none; d=google.com; s=arc-20160816; b=p8LpIF/7Pu919D7EZdYvGXUu3C2aISFMrac+ghk0NJ3hfnUC6nLcg0YFVEajSEp0/u P4Ddp9q1vxZQp+/yavAszA5eFD4ooKu7W1PXUJuiW9Irc8BEadcDLfylUCf+XbtHLU85 MoI6JiMcgkU7+kHVigFBqR9d5Nkpte45sipp3HFzCzV4nU0hkjXm1lqTAWmx1DJlEScA T5Ji3HOQa1uWwTsdhfcgAS2rdoQsQtXgl3V+iEJ03JTHAZPJOVLJjuQTIqiyDEvOFIVI d96l+a1S9+sTpvvb9ClmbR/EtuwHb+Xs+2Nv6PzSjf/EKNPTMezm/2M7dZx27w8ZwaLr RfIw== 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:message-id:subject:cc:to:from:date:dkim-signature; bh=vrELjCRWUuWgBxG/0NmdBEll0kHxCUngDsbAfQ8U4SM=; fh=p2R41Xdvthg6GNZ/AFPZtylobZDZ2gOgpU3BODfbs64=; b=GqBMW0wihehKgHQtFmqf/cMz9SHmBNPgf7C1twM0zTHwUMukDcb0dbhpbWXYkYT7e/ 3PUxobHOxPpF62NNIUqw3BVW9XPIX7nzcjAK81WL7LnN2ltKfdt6yl5Dx579bJ/aCbgS v8o8sZ3T6Wam98GSjAjPZtyTD+gu/3R9ee1XGKVE1DFZdUMduI5ehPn372LHMNV74V5P VcS1613vmUfPjqeQP4MdKe4r0fwE77j0njDeaOD19g3hafKbzpwnxhKo5iquFUBif5mB z65ok3IFJuwMWvA9fybq4VYooEMYNYvlyY0f0N8oN/XBLAbhWxa8TprN8kZV2AqYyIQ4 aI9A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=SospscAn; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id oq14-20020a170906cc8e00b009931472bdb8si1664425ejb.965.2023.07.07.17.03.33; Fri, 07 Jul 2023 17:03:56 -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=@infradead.org header.s=casper.20170209 header.b=SospscAn; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232438AbjGHAAj (ORCPT + 99 others); Fri, 7 Jul 2023 20:00:39 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46646 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229515AbjGHAAi (ORCPT ); Fri, 7 Jul 2023 20:00:38 -0400 Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:8b0:10b:1236::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 45366128; Fri, 7 Jul 2023 17:00:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=In-Reply-To:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=vrELjCRWUuWgBxG/0NmdBEll0kHxCUngDsbAfQ8U4SM=; b=SospscAnESYLmVjxT53N4kth/D U3MJHJ42KyDTnes6JefBnFLdIjMF8Biw22nxOV/H74eeclvSZc4jYAYwI7iCXsYUWXZb8OtKIDr5z XJEhW0sqU4ASIMp3THBnDU90JrL7xL9MZRH25KW41GnlCgoqBy56jqh77+JDi/yZ1dbsaGk0JrYmk 3vEEYDrl8+OczcI5ruvlLDBGcJZogg9cU5O886wYEg7FqEOVNPOVPepyJey/atA5cMjpWQcHbe6dj DZg/oxCut1sFJ+2PNdjrX2LUl89baewoxeEBYtimaNWIaL/o5n5xrNzWZYYHgUUgfkeKzeWScYk3H iSd3816Q==; Received: from willy by casper.infradead.org with local (Exim 4.94.2 #2 (Red Hat Linux)) id 1qHvNF-00CTIK-1p; Sat, 08 Jul 2023 00:00:29 +0000 Date: Sat, 8 Jul 2023 01:00:29 +0100 From: Matthew Wilcox To: Linus Torvalds Cc: Ahelenia =?utf-8?Q?Ziemia=C5=84ska?= , Christian Brauner , 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: References: <20230626-vorverlegen-setzen-c7f96e10df34@brauner> <4sdy3yn462gdvubecjp4u7wj7hl5aah4kgsxslxlyqfnv67i72@euauz57cr3ex> <20230626-fazit-campen-d54e428aa4d6@brauner> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_NONE,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED 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: > +static int busy_pipe_buf_confirm(struct pipe_inode_info *pipe, > + struct pipe_buffer *buf) > +{ > + struct page *page = buf->page; > + > + if (folio_wait_bit_interruptible(page_folio(page), PG_locked)) > + return -EINTR; Do we really want interruptible here rather than killable? That is, do we want SIGWINCH or SIGALRM to result in a short read? I assume it's OK to return a short read because userspace has explicitly asked for O_NONBLOCK and can therefore be expected to actually check the return value from read().