From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 6D507EB64D9 for ; Sat, 8 Jul 2023 00:00:40 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232418AbjGHAAj (ORCPT ); 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: Precedence: bulk List-ID: X-Mailing-List: linux-fsdevel@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().