Received: by 2002:a05:6a10:9afc:0:0:0:0 with SMTP id t28csp356789pxm; Fri, 25 Feb 2022 09:16:35 -0800 (PST) X-Google-Smtp-Source: ABdhPJyp58wcqUzosOzCgDWEK0hmPaBdMpFfrsmYbeos/Qf9tXhC5+glpbuCkBk5wCZPGQIy9Nds X-Received: by 2002:a17:906:4b53:b0:6d2:2945:2730 with SMTP id j19-20020a1709064b5300b006d229452730mr7102597ejv.224.1645809395274; Fri, 25 Feb 2022 09:16:35 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1645809395; cv=none; d=google.com; s=arc-20160816; b=fn/hohe57li/BsxfytybstMxFPGbmZbc6BoROk40anKatHlulTNC2KIPOneRJ4+mUt YFdOQhFNidw+3DyuPHeukwxYIIJLxBD1mNYJv3dlgAsRBPAtGQrTA2+TSukbjd7Xp6UY sk/66KRUK07yPIBmm2pFGekSuczWWstNwI437xtvFQ84PmRjdtjFa0iac/ntuHQMMB25 YaWKaPhS4tDI2X55tdF8xc2TVhF01eHXyfMriPOTom0dzwge/0L1ST4VcYuhV8L+inxA XTP5EA73YCdiCaeZ1SwcoqL0K635N4DpHXHDjhrTV9v1m7R35KYZB7eB5ZK96qrC89GW RglA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=9EAGZgY5SPdT1cVkvJoh2QfrN+7asBE1KRK8S40gaDQ=; b=ePNxR97vZqXORHIjDvnL1PDc/1Db20JgVj2IZDdgY31vcPp8+XXnmdF6koNIsBRAwH Mw8r8PdiwTFSNacxejzmb05kRfCscOhJXQcPasow3aFRqWGXj/FFFp7luzEqUV+yWCmj xNVLcCqs39drYdAgYa0dtWjlgpft2AARcieyb5zFig7G86r1EOD0WMzQXj9Yqs07ib/5 8ehRwIn7uUZvi4somZzTrrb9Wj82j+TRAETxvWJmqSsJNAEhJmA4027VQGQVoStOrCoq ia2ZbP+JmyKixgqRer/R4Km9cCxMEHFsfYFAzeyZPeD3Be59VyBwyEIQXjMohIu5iweE 4hpg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b="fRej6ns/"; 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 k18-20020a50c092000000b0041295cafbdbsi1909046edf.170.2022.02.25.09.16.12; Fri, 25 Feb 2022 09:16:35 -0800 (PST) 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=20210112 header.b="fRej6ns/"; 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 S242060AbiBYP2l (ORCPT + 99 others); Fri, 25 Feb 2022 10:28:41 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55596 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231340AbiBYP2k (ORCPT ); Fri, 25 Feb 2022 10:28:40 -0500 Received: from mail-lj1-x22d.google.com (mail-lj1-x22d.google.com [IPv6:2a00:1450:4864:20::22d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 25E512036EC; Fri, 25 Feb 2022 07:28:08 -0800 (PST) Received: by mail-lj1-x22d.google.com with SMTP id v28so7854073ljv.9; Fri, 25 Feb 2022 07:28:08 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=9EAGZgY5SPdT1cVkvJoh2QfrN+7asBE1KRK8S40gaDQ=; b=fRej6ns/ZWUEzUvxNGbQZNAT0BSw4zJppp4g8vJ12SjSS7/PKWYqWh+qGLnO51O8iL xYfz41lSy7g9p5dFSX/Vhn9G1iI4DI42ZpPD98CNT4CIVD+KHqAMGHjPeFAxtW7r4OWJ Bt24gJWuMtOlAENd3MxdHU1fclGI3Ej7waj6TqxJBGC+e5Plc8MWVww3O23yMZN5MEai +v5oPQeRV/Ecda+PFN2Fi3sqCicKjkSIcXNayKhRTQKBSKzcFg6VPMXnJJl+dWQ+yZ2I Us39X3Lp2huMeqYZOnP4q4WORoar2kNDCdTWI8b0htO7xg8iaNf+S0vFGZcd7nT8mqH5 YvuQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=9EAGZgY5SPdT1cVkvJoh2QfrN+7asBE1KRK8S40gaDQ=; b=e/pMh0ERo9zeLe7Plgh6uI5/hPKEzI5VttLGDzkP2q4RgNNKM8RQvteO3sAY/9mefi 1eWNXUzgXbXnPi6kkQYDlRxiIlpl+oTAJowSbcgId2H5bPVUbT3GpX8/mT5KtHjN1sJp mSQsDHrEG+HHkCeL1oG0t47zLX+Xs05Z59o6JNlYPUqw9A6IUuTw3vDTJ1my43xip37A P+CCAov6mLEoXM2spSrd/a/JQhhSXFQVW7nNapjSGtyDtLhU2hr5HmmDFYiSXxBwHtmu FlGeG9Zyc8T6jHRgZ8L5Z+MyQkvTn+mTU8AO72H4dvpAQmkkE2X6Uz7Xg/PpTIag5y06 hsyA== X-Gm-Message-State: AOAM532AZbdtveSY4Q7UY8n9VHmouzS1A8s4vyL8+KJaBns3Yltl3Qfr BCoC80v2vrHSH6g2+t2kgVhCq+S0o9vyKDvaaqQ= X-Received: by 2002:a2e:b014:0:b0:23c:9593:f7 with SMTP id y20-20020a2eb014000000b0023c959300f7mr5517803ljk.209.1645802886225; Fri, 25 Feb 2022 07:28:06 -0800 (PST) MIME-Version: 1.0 References: In-Reply-To: From: Steve French Date: Fri, 25 Feb 2022 09:27:55 -0600 Message-ID: Subject: Re: [LSF/MM/BPF TOPIC] Enabling change notification for network and cluster fs To: Matthew Wilcox Cc: Vivek Goyal , lsf-pc@lists.linux-foundation.org, linux-fsdevel , LKML , Ioannis Angelakopoulos , CIFS , samba-technical Content-Type: text/plain; charset="UTF-8" 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 Fri, Feb 25, 2022 at 7:49 AM Matthew Wilcox wrote: > > On Fri, Feb 25, 2022 at 08:23:20AM -0500, Vivek Goyal wrote: > > What about local events. I am assuming you want to supress local events > > and only deliver remote events. Because having both local and remote > > events delivered at the same time will be just confusing at best. > > This paragraph confuses me. If I'm writing, for example, a file manager > and I want it to update its display automatically when another task alters > the contents of a directory, I don't care whether the modification was > done locally or remotely. > > If I understand the SMB protocol correctly, it allows the client to take > out a lease on a directory and not send its modifications back to the > server until the client chooses to (or the server breaks the lease). > So you wouldn't get any remote notifications because the client hasn't > told the server. Directory leases would be broken by file create so the more important question is what happens when client 1 has a change notification on writes to files in a directory then client 2 opens a file in the same directory and is granted a file lease and starts writing to the file (which means the writes could get cached). This is probably a minor point because when writes get flushed from client 2, client 1 (and any others with notifications requested) will get notified of the event (changes to files in a directory that they are watching). Local applications watching a file on a network or cluster mount in Linux (just as is the case with Windows, Macs etc.) should be able to be notified of local (cached) writes to a remote file or remote writes to the file from another client. I don't think the change is large, and there was an earlier version of a patch circulated for this -- Thanks, Steve