Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp16219516rwd; Mon, 26 Jun 2023 07:16:48 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4FXwS/kHEjhpfxK2yqdwQnT7LiSvWh6CG/4D21fgI1bkdq7rOO77XtBn2UImNE3OUqb/vr X-Received: by 2002:a05:6830:3b85:b0:6b6:9f34:e9a8 with SMTP id dm5-20020a0568303b8500b006b69f34e9a8mr13268076otb.11.1687789008174; Mon, 26 Jun 2023 07:16:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1687789008; cv=none; d=google.com; s=arc-20160816; b=vhYHk4ECV47TUj9BfCNmyIUEQCQqa0Ajsvnt8oRUK6eHRb0JQ/jZwYc1p/7XArlKJ0 FNRsskjsgWu0rldun4DI65tUJOemsBLM9ttQWsuLmAxfvy+92vk3nz7ZN1XqJpSE6Aq7 jMnh0y+BjV8KRCAEeAgeywrLM43IuQ79+FNmmMwXnDMjJfWVvf85ZqDdhu2nqlAts4h3 XEoXcwkwNj29VQ0z+ge5DT/kSLEN4fI4FV/HipGwKqKsTnhwuK19vKcEO37Da09U/OUt BSsJYkBxsYeyPoPYoTUcIT6dLZugip4i4Z2ECa3J/yZwjYVYFGbN4oBg5g9OrKg8qK7O w4Mw== 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:dkim-signature; bh=28aS9ByuuiqDDCRAZtpdiiacSEiL5jJK4uYo0x6Y0gM=; fh=zSXSVImxkS/9DjlCJbrlFd7bWysKUsDI10BO0le7QaQ=; b=HsvQ50GOE0C3H2k9vy/aztMQljS8DeV7wJDayaGpeWA2fx14ZZRmwMQEUCvwxkYnSB eZOd/SUV12wvZTTMjBDLsQ2tjnaQPFhYOF37ADIRYPI7wH4AXOwzuYlPRhnKLpZnFqbw TNpAu/W8PnJKoxDgSW1qklz4Btdp3t4tN9ubBIF63eYzuZ8SNgfHfbXauAQcoaA/VQIh 6/rDRcH+fV3HYXDwgCm+9xWGPKRwt1CncElgrTbLIFpvRdzev1nzZvVNVZIhCsp62c8c gRPXgMK5lX0khTRfjGWWUJxn/nFcfHHBZd4OuirpdFMs+6R1pMD137iXu/J2rFDtlFkj kROA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.cz header.s=susede2_rsa header.b=II2ZJr0B; dkim=neutral (no key) header.i=@suse.cz header.s=susede2_ed25519 header.b=VOKu3XSd; 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 k184-20020a6324c1000000b00541710a9d44si4902558pgk.114.2023.06.26.07.16.35; Mon, 26 Jun 2023 07:16:48 -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=@suse.cz header.s=susede2_rsa header.b=II2ZJr0B; dkim=neutral (no key) header.i=@suse.cz header.s=susede2_ed25519 header.b=VOKu3XSd; 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 S229803AbjFZNwD (ORCPT + 99 others); Mon, 26 Jun 2023 09:52:03 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49412 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229635AbjFZNwC (ORCPT ); Mon, 26 Jun 2023 09:52:02 -0400 Received: from smtp-out2.suse.de (smtp-out2.suse.de [IPv6:2001:67c:2178:6::1d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AA7EFBB; Mon, 26 Jun 2023 06:52:01 -0700 (PDT) Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by smtp-out2.suse.de (Postfix) with ESMTPS id 477451F896; Mon, 26 Jun 2023 13:52:00 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_rsa; t=1687787520; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=28aS9ByuuiqDDCRAZtpdiiacSEiL5jJK4uYo0x6Y0gM=; b=II2ZJr0BVlN9WjvvVm+s9zLlwDmzjCO3IPMtVIRBY6zVwGAlUbCGumVNscsxNQnNy7YBeZ TF5y9V4rsneS38fPo75JQo6DQeyeXrb5k1As5SRZQ0+HJPpS6Zvun4DSDXZJuonSWdRauU qS98WAghX8OgVidUQR54MDQpcJoYYI8= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_ed25519; t=1687787520; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=28aS9ByuuiqDDCRAZtpdiiacSEiL5jJK4uYo0x6Y0gM=; b=VOKu3XSd+j8oj8MGm2n21dtl46QOczKzDz4GQBgkfuDsfyROKlcokH4MHzpcmaHzbu2hDx gW5QZgZnh+78yXCQ== Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by imap2.suse-dmz.suse.de (Postfix) with ESMTPS id 38E6213483; Mon, 26 Jun 2023 13:52:00 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id /hLbDQCYmWRPcwAAMHmgww (envelope-from ); Mon, 26 Jun 2023 13:52:00 +0000 Received: by quack3.suse.cz (Postfix, from userid 1000) id B9B5AA0754; Mon, 26 Jun 2023 15:51:59 +0200 (CEST) Date: Mon, 26 Jun 2023 15:51:59 +0200 From: Jan Kara To: Ahelenia =?utf-8?Q?Ziemia=C5=84ska?= Cc: Amir Goldstein , Alexander Viro , Christian Brauner , linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org, Jan Kara Subject: Re: splice(-> FIFO) never wakes up inotify IN_MODIFY? Message-ID: <20230626135159.wzbtjgo6qryfet4e@quack3> References: 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=-3.7 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_SOFTFAIL,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 Mon 26-06-23 14:57:55, Ahelenia Ziemiańska wrote: > On Mon, Jun 26, 2023 at 02:19:42PM +0200, Ahelenia Ziemiańska wrote: > > > splice(2) differentiates three different cases: > > > if (ipipe && opipe) { > > > ... > > > if (ipipe) { > > > ... > > > if (opipe) { > > > ... > > > > > > IN_ACCESS will only be generated for non-pipe input > > > IN_MODIFY will only be generated for non-pipe output > > > > > > Similarly FAN_ACCESS_PERM fanotify permission events > > > will only be generated for non-pipe input. > Sorry, I must've misunderstood this as "splicing to a pipe generates > *ACCESS". Testing reveals this is not the case. So is it really true > that the only way to poll a pipe is a sleep()/read(O_NONBLOCK) loop? So why doesn't poll(3) work? AFAIK it should... Honza -- Jan Kara SUSE Labs, CR