Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp17232989rwd; Mon, 26 Jun 2023 23:29:32 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ72lsG1E4N1OJEjuHE3yt6d+pC9cJg5nIQBocinZwGO+On2yavQ4IWG83isMmt+gIW1WQqz X-Received: by 2002:a17:907:1628:b0:991:eb77:74e with SMTP id hb40-20020a170907162800b00991eb77074emr2657063ejc.76.1687847372084; Mon, 26 Jun 2023 23:29:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1687847372; cv=none; d=google.com; s=arc-20160816; b=SKq/VNm4aoMo/mk6j823a49FVZCWi2IPDU0E0kgvLcEPtH8vSntqcAK+Vn4uWgE0gn nHLjmLJEzeK4TGOq91cH6hkQtTbE8kzJGfDbfB2lb5lWX4p9rnh5BE6oO1ZUCZxhAbne yv8BrUFc9+tr8Pi1TR9c7+axyMwXF8IrESTHYEjH+2EanN3ShL9nmRzGy3VcoZMyt5Jc pZ5vMivBJPwXhmmHypjgCBugX2jWY/LfrmnZHZ0edTxmPRlvitwnxHRfzl7kzSJPDrmV 1Pe6nlz12gbEdDO2fGDyFNBCJGboQmVaLpQEKlYYR061CKUfd5HmZwz899LbnWIKxpkx Eh6g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=RS+/DS6a2ZYIFGecpsQdsKJGuE+9ACCGxU7vGr6grZo=; fh=Gt2Uad4sYwWYWS/xI5jgxGM+3P7V5053SrQjUxO+CYk=; b=MVqmrgiL/o9Amibji+ycNdLgATDz8TshWUQnQwO0TR0zPndR0UN24yeP1GblK1vudV 2eCMo9skTsdnlW5nNyoaTnh75gT1/M127K4WxBVQW82Vl1oUouWF9t5zJ4FTrjxMS7Ao EXO6aM5CO8K+B7ZJddew020bZTRKGcui3Wq70fj4IeI2nZHq613GCjPGXHoPsaN6I03X 9JWp0+BYdbWjBG/M+hl0a6zwsjc+z5I+AKmUFZsFOAxQPs4punAOPexHKF3Rw7tCrzF9 s+DDA9ftNs1FZ6pcla/uExQsLxGCi+8TALxR9E/EuH6XV5nicQuVXwAcBDQhNmXmZvhI JyKg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b=iVaPXWK9; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id sb23-20020a170906edd700b00982c9660263si3854608ejb.803.2023.06.26.23.29.06; Mon, 26 Jun 2023 23:29:32 -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=@gmail.com header.s=20221208 header.b=iVaPXWK9; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230113AbjF0GUX (ORCPT + 99 others); Tue, 27 Jun 2023 02:20:23 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60932 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229647AbjF0GUW (ORCPT ); Tue, 27 Jun 2023 02:20:22 -0400 Received: from mail-vs1-xe2a.google.com (mail-vs1-xe2a.google.com [IPv6:2607:f8b0:4864:20::e2a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AA869E52; Mon, 26 Jun 2023 23:20:21 -0700 (PDT) Received: by mail-vs1-xe2a.google.com with SMTP id ada2fe7eead31-43f4167d2b5so1147707137.2; Mon, 26 Jun 2023 23:20:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1687846820; x=1690438820; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=RS+/DS6a2ZYIFGecpsQdsKJGuE+9ACCGxU7vGr6grZo=; b=iVaPXWK9tZSiTjDa5a8NN2c6GzXqjIqFOiq69070t0z3VV8YMemqpA+GR8Qet7YseR IbHBccyauw7G68TJUEqt6wym94Zx8gjQ0jLbQEHqUuT1U3XS/ZfumEzfF2jk6zJbgUov KXwbJOLAncKU+YnC6L/lf9eWI/7i/F9uNjc8yqIH8scuI83VI/m0EKWQcRLLqCB51SKT BDomQ9atYo0WjImVB40m0eAOqzZAwRSvT5ghWvyGt7pXh8FsWAd8FCvvQIc4xzDubwar cY94FPb8FQJEza0h+BTmo58Fw/oijiAz/WqMzsg0hdm5lUK3S5ykM7nQuHAwoZNAby6H GQ+A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1687846820; x=1690438820; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=RS+/DS6a2ZYIFGecpsQdsKJGuE+9ACCGxU7vGr6grZo=; b=ITMxpcWZaV0jmOGixbBdSlAcb2WxXIPOWreL7p0E1NFcaS6zWI2yU4zhNAuFIe7jqO 1O/Ww7lZbIDyJctmHEW6iDZY0MaXz9MAPgZNNIl6xy7mImSMYdGFLTeHkZhCd8WYW19Z elxZvWWCPZaNpr9SWeYhJ4vJ+TC81rmaX2KchXWVNfsxeD5kvskWhI+Mb4yb8nPN0NUb klisR7e6beYdk27ZyrkwlmGoS9Xi6cgrpxjhnStfnAR/DF3CmKlzeO6Sh3T3yua5blXi z5eBF5Koldo0OTICIF+6e6UpGtFh75rGX6VsVDSvnBXyUa5vaGFedogHooc9SkxuaBYh 2njw== X-Gm-Message-State: AC+VfDx/YZ/ldfgnJPwzX5pRPsPDuhyW5zTGWgSnOndWlfsr2SmveHBZ jlP3zRoGaQ8AdBAYWb6nQjnk0RPCfaJkmw6BY5A= X-Received: by 2002:a05:6102:95:b0:443:5aea:408f with SMTP id t21-20020a056102009500b004435aea408fmr2282548vsp.27.1687846820694; Mon, 26 Jun 2023 23:20:20 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Amir Goldstein Date: Tue, 27 Jun 2023 09:20:09 +0300 Message-ID: Subject: Re: [PATCH v2 3/3] splice: fsnotify_access(in), fsnotify_modify(out) on success in tee To: =?UTF-8?Q?Ahelenia_Ziemia=C5=84ska?= Cc: Alexander Viro , Christian Brauner , linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org, Jan Kara , Chung-Chiang Cheng Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,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 Tue, Jun 27, 2023 at 2:09=E2=80=AFAM Ahelenia Ziemia=C5=84ska wrote: > > Same logic applies here: this can fill up the pipe, and pollers that rely > on getting IN_MODIFY notifications never wake up. > > Fixes: 983652c69199 ("splice: report related fsnotify events") > Link: https://lore.kernel.org/linux-fsdevel/jbyihkyk5dtaohdwjyivambb2gffy= js3dodpofafnkkunxq7bu@jngkdxx65pux/t/#u > Signed-off-by: Ahelenia Ziemia=C5=84ska Makes sense. Reviewed-by: Amir Goldstein > --- > fs/splice.c | 5 +++++ > 1 file changed, 5 insertions(+) > > diff --git a/fs/splice.c b/fs/splice.c > index a18274209dc1..3234aaa6e957 100644 > --- a/fs/splice.c > +++ b/fs/splice.c > @@ -1819,6 +1819,11 @@ long do_tee(struct file *in, struct file *out, siz= e_t len, unsigned int flags) > } > } > > + if (ret > 0) { > + fsnotify_access(in); > + fsnotify_modify(out); > + } > + > return ret; > } > > -- > 2.39.2