Received: by 2002:a05:6a10:9afc:0:0:0:0 with SMTP id t28csp1094800pxm; Sat, 26 Feb 2022 05:53:25 -0800 (PST) X-Google-Smtp-Source: ABdhPJw7tO43FH0qs4v6CzpTtgFzYrtgfoYa3WBRw+z09QE8K02aRq9XjpIE1nw2gpgFC+naYY9X X-Received: by 2002:a17:902:cece:b0:150:3f2:4616 with SMTP id d14-20020a170902cece00b0015003f24616mr12359982plg.41.1645883605296; Sat, 26 Feb 2022 05:53:25 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1645883605; cv=none; d=google.com; s=arc-20160816; b=SZKuUs4qJSBoR653VqmaOVGsw3fkJu3k5byTyzXVFT+2RCCb+1aKQZmE5678113FHw 8gRfeiSP0ZEAtwSqB9etR6Q2R9WQqofDLMOa0HpvRf4LmRvVUAQsXXo7IU7iVG2goCQc 73yh91PRRp3rUHkHl4NIUgib+x3iWd3nr/gnHN0PUIMIBi2fFxXeW8vprbG1Tu1uI0ku lOJH+AQTRMBfyKt28Cey3rQpwJEuLBoiKS9pUeCD7cEmbhmijaiRdpyL5lgTMgH7UQjb HevjdLQTfxMh+/cc7hfd3O3g2MrIDWY9YG6+YrgSu96s0iHmEOM22GpW4J6dwFVWiouB vsBA== 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=7jsdZ9DhlS+cuBn5e0nl64bHzF3fsXAHgkXh5/R5ncc=; b=tyYPL0JrI2k4O9Kzg/iZJ5qihicJgcYmNS69sKhkpTgVXidSId5eI4cpVyQ+qpYf5C jdP8kLsK0C2JN2LCbLr9szG4GGAmbWqPssp8loDVMj4aUmD2cLpzx675sHDo2AR+nGa9 H1zha9ks73yg/6YVTPiR++ZhgAhaHnKLeftB17Oz9jzBwezIHhxD/0yXCfD2Q/bDcjKt /6gxJnpY0cOyVuIuwwmOW5D0PlQol5DbSi5LF3eyJkf8/1x3pyZqKSYJtxW57ugwSvTF w74fDst9b9W4xJk72Tr017ZuY+0B5oYvauiuhabR8Ou/55KeBPLV7r+D/Rg+HwJHnUMh mgIg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b="Pk/5G1lt"; 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 q13-20020a632a0d000000b00373cf6d1966si4469596pgq.174.2022.02.26.05.53.03; Sat, 26 Feb 2022 05:53:25 -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="Pk/5G1lt"; 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 S231130AbiBZKXR (ORCPT + 99 others); Sat, 26 Feb 2022 05:23:17 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59092 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229819AbiBZKXP (ORCPT ); Sat, 26 Feb 2022 05:23:15 -0500 Received: from mail-io1-xd34.google.com (mail-io1-xd34.google.com [IPv6:2607:f8b0:4864:20::d34]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F1A54210450; Sat, 26 Feb 2022 02:22:41 -0800 (PST) Received: by mail-io1-xd34.google.com with SMTP id t11so9376210ioi.7; Sat, 26 Feb 2022 02:22:41 -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=7jsdZ9DhlS+cuBn5e0nl64bHzF3fsXAHgkXh5/R5ncc=; b=Pk/5G1ltlqkex9Y+38e0ALpLwIfmXwSdGhfyk3KPmYg7jA8caCJ5ptjHVJ8qkrApBN PNsT6YFchzjpfgqUDntNayFb7qHshC7M4cynt2wDG3w+qRcIzmjT4A123luLgdFYZZyS cfl3zIwmajvZby33ZoWHTOS7wjzJuwU9rc/p/psW6U9qElutFiMDXtaStoHn4VAIWJxw ccZNKUp3cfUMQjAfMaTlYk9sZSlPgpRDqIFTEPIHlUdaY8Vc4uecClBtQmeTHpV2GhcN qk3uBpZ7ZrG11i2NUPBf1rSerH/IpgTqx7BhceHzb94piiA5AWXht/y/hOcWWVVaBLUr VF+Q== 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=7jsdZ9DhlS+cuBn5e0nl64bHzF3fsXAHgkXh5/R5ncc=; b=smss3/zdVsBBpcb/6UipHbZ7LvuK7YUcX6FGSw0F0XgP8D8Ac3Oju4qGox1aSSIpYo vaJINX4v2cRXeoixg088luVXGYT/rz28PqO9p/2kc8TbOnvNZKH6Oh8PHN+p1Poxqdfd sMLq5xs2VwpfGTSi8M2oJ4mmxhBJPcNlERPEA2XaC1O2Uowr9YscNkB1ejfyXEKjyaoS /1m08TwpFIZ1mMhnam+xYOVVZxx2iJGN4nqUJkUQVVm2y3dYoDKqyAfiGOWCnVJYtFsv IXKGKGrX4a7BsIh4Rx4lbB+Xix2m+Zo56honvcM3IfW/ZzHASJa+20aaEcvfCSrOUFvm xKHA== X-Gm-Message-State: AOAM532P8eA1jr/oQhsG0QKoNq+Lf81a/tAdgDLR9UysESV44AkQ8Lqu aCUZYzlXH5pnkN0dXcNpem64Uck8c+SdTkm9pGQ= X-Received: by 2002:a05:6638:4905:b0:317:1dda:b116 with SMTP id cx5-20020a056638490500b003171ddab116mr985704jab.188.1645870961399; Sat, 26 Feb 2022 02:22:41 -0800 (PST) MIME-Version: 1.0 References: In-Reply-To: From: Amir Goldstein Date: Sat, 26 Feb 2022 12:22:26 +0200 Message-ID: Subject: Re: [Lsf-pc] [LSF/MM/BPF TOPIC] Enabling change notification for network and cluster fs To: Steve French Cc: Vivek Goyal , CIFS , samba-technical , LKML , Matthew Wilcox , Ioannis Angelakopoulos , linux-fsdevel , lsf-pc 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 8:11 PM Steve French wrote: > > > IOW, in general disable all local events and let filesystems decide which > local events to generate? And locally cached write is one such example? > > The fs doesn't see cached writes so probably best to still use the common > existing code for notification on local writes > I guess SMB protocol does not allow client B to request a NOTIFY on change when client A has a directory lease, because requesting NOTIFY requires getting a read file handle on the dir? Effectively, smb client needs to open the remote directory for read in order to prove that the client has read access to the directory, which is the prerequisite for getting directory change notifications. The local check for permissions is not enough for remote notifications: /* you can only watch an inode if you have read permissions on it */ error = path_permission(path, MAY_READ); Thanks, Amir.