Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp16113391rwd; Mon, 26 Jun 2023 06:03:40 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5vNBFSpzWGeaX1HZXZAUJLA6zT18Hr7BRe7ffFwrtru7sd9nPudDYOwQkIkphBuHINSqG1 X-Received: by 2002:aa7:d9d7:0:b0:51d:914a:9f3d with SMTP id v23-20020aa7d9d7000000b0051d914a9f3dmr4245627eds.10.1687784620162; Mon, 26 Jun 2023 06:03:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1687784620; cv=none; d=google.com; s=arc-20160816; b=XUSlrVuVGO8Mm1MPdmbZlpDra5vuAX1BE65Y8gyqX2t8JSO9jzouISYt1CMVmZ4pf5 n0m5hLVwiSIuQs/no1bDewX4lnCkUvXVjgzniat1LdvZ/c/OW8pFiQ4sBqMbmDG1DRVX /LVOeEPESws95N8R+rYcuAA3Eo/KWSVrA9IhzFMW8z/Nw4MMJPvUhGmI1KKvU5dxHwba e86pPtVG+GCk8j8DO54m0gRCez8mW/jQBWWr4kYuJEinoCcbYQe9eeJ/xYuX0vMszP6B Ryd7SKj/oZG66OnHDXlGvwDZsa+Bs5rIQA1QoIBvlka2VhmpNZgthrNRau1yxnDjvI+M D9qQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=v4ANxxJfcdL5bcgtJ2+mzCbDOBwgiGV+zg9CuTtOkmE=; fh=MOXAE7n3IhsxQbmrUTmgITDTohSWv896iCdR0dP7EWw=; b=hvVwqwTPThXBkk7nbEYNwi6avcNfgXd2NTnB34LChONJksEV9PHW+3EW74pyQEt/cs k9zcRK/HT3RhQo69QJtVqvTXbxQwqbld++lTHBSM3Xnk0zVDAh9P8Oqc5zZaCgix665q QNenAuNllu+DBFJPTB4hGh854hBZ3aeZKdaeVXoBcWLJTdtOvKteEZ8Na53ykYx0lzcM 0dLhAEVbRDWgG6raLXmQYYv4nxOpFMM8RHYgQ/YdzHlE3wAuGtLtOWZEy2W1IT7TXF7R 34+C02qCq1BNCbXlpydSRX4zU/6LOGATCEHNa2XIIrvrx7sn1hA60NyPCN/IICZwJaGR W6kQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nabijaczleweli.xyz header.s=202305 header.b="WTzf/tAq"; 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=nabijaczleweli.xyz Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id p20-20020aa7d314000000b005163b432854si2811944edq.154.2023.06.26.06.03.13; Mon, 26 Jun 2023 06:03:40 -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=@nabijaczleweli.xyz header.s=202305 header.b="WTzf/tAq"; 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=nabijaczleweli.xyz Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230151AbjFZM6C (ORCPT + 99 others); Mon, 26 Jun 2023 08:58:02 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49708 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229601AbjFZM6A (ORCPT ); Mon, 26 Jun 2023 08:58:00 -0400 Received: from tarta.nabijaczleweli.xyz (unknown [139.28.40.42]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 40E45125; Mon, 26 Jun 2023 05:57:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=nabijaczleweli.xyz; s=202305; t=1687784276; bh=A/60Mehy2gEPdHOhKuvb29K5E/lHwYktVCiUO81YhVg=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=WTzf/tAqpNxj+m/LGdIioFeXMgVqZJt5PqcFowaip6qE56AjZmzNwx7fLtFHQvy9f 5Om84sinbt4mZPHgy6coGdlGgupO64W6VLgoQ1kaYcadRlfw8GJi7dZM1dNFTDGCVC qBKLiB6hXx8+0tyNrIQLmtWR31mPFzLOeyTcXaUkFWumiDSXPOE0GbwhEHk0fjbbKI TSNAK9Heaqf0rzBHjoCWTZC8VcmR6tXx9PjHwW5j+HsjjJK+1vRFFMgxfQk5FURUbd cM1mciolye4Aam3k1WOipDJJe/kjD5BX/DvtfFApB+hmNebRsUsAjLuR8RVoEX72Jd 8Ufe9xI9r71JA== Received: from tarta.nabijaczleweli.xyz (unknown [192.168.1.250]) by tarta.nabijaczleweli.xyz (Postfix) with ESMTPSA id 6C49D131C; Mon, 26 Jun 2023 14:57:56 +0200 (CEST) Date: Mon, 26 Jun 2023 14:57:55 +0200 From: Ahelenia =?utf-8?Q?Ziemia=C5=84ska?= To: Amir Goldstein Cc: 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: References: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="ekt4xsobei4itlj7" Content-Disposition: inline In-Reply-To: User-Agent: NeoMutt/20230517 X-Spam-Status: No, score=-1.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,PDS_RDNS_DYNAMIC_FP, RDNS_DYNAMIC,SPF_HELO_PASS,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=no 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 --ekt4xsobei4itlj7 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Jun 26, 2023 at 02:19:42PM +0200, Ahelenia Ziemia=C5=84ska wrote: > > splice(2) differentiates three different cases: > > if (ipipe && opipe) { > > ... > > if (ipipe) { > > ... > > if (opipe) { > > ... > >=20 > > 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? --ekt4xsobei4itlj7 Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEfWlHToQCjFzAxEFjvP0LAY0mWPEFAmSZi1AACgkQvP0LAY0m WPHojQ/8Dca03RA9GygaCJ8mDUbT+U/Gqnugp+zljoVBLoiichVLnHP+K80x4mpZ IYARMuM4jpDGmaxr/W806OQRi/Sx63PiqDG0FrLGafyrJzUZrvaoYRZ3A7m/tRaV hVpJeSOiaeJ4wJo9Z1J7RxCOS9JrrPF3gHdWPza9Hn80pJJDLKO1bPOgJC5vjwQO ECrzB1IHa+hqTqrxcM+ZDI72VVvlhPkZnzmwkeHduGVRBJNquaZxTZf+BIfA4NLO wFLFB+4VCP3ZLA2GePQMIEVbUyqI8ue7PG039Vs1UTl94aRE0liQcYqajEoeuliu YPB8WrzYyNYMKpTTQgETnW8/iBiEJhl3sqNHJD3EBeCih/N8eZs/WRDYtUtj8lqz cMiJTxmUDPxBUhnSpV+/pe7uz3A/QDNb+V/y13DIixxYy8YLjbdUzec4diGc1nmV Oo6+w4fFwZz6zICyTqwwTOr245iITKSTgBGxyCUlm+7XwApJKygiC4XjeXec9x4X QTnrUKBhfmD1eXXcm/FlpF7rLwUXmMjwHWAwWXZrpwozV4ghot6hCJsV8pSJ8ufE p9jViAjpUm+ogkQif51mbmqWqYoTpzRur7TL71XeoxVAk7tlba+rlkyCxMNCHMa6 587F/RtRIvw1JzBxyRpF3vcWgGQpl9Pm8Udcd+Hjk9D76t4EQQY= =ZCkQ -----END PGP SIGNATURE----- --ekt4xsobei4itlj7--