From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-3.8 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 68C64C43457 for ; Thu, 15 Oct 2020 03:25:15 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 1B4D022241 for ; Thu, 15 Oct 2020 03:25:15 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728370AbgJODZO (ORCPT ); Wed, 14 Oct 2020 23:25:14 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39086 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726474AbgJODZO (ORCPT ); Wed, 14 Oct 2020 23:25:14 -0400 Received: from ZenIV.linux.org.uk (zeniv.linux.org.uk [IPv6:2002:c35c:fd02::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 41274C061755; Wed, 14 Oct 2020 20:25:14 -0700 (PDT) Received: from viro by ZenIV.linux.org.uk with local (Exim 4.92.3 #3 (Red Hat Linux)) id 1kStsz-000WW0-3v; Thu, 15 Oct 2020 03:25:01 +0000 Date: Thu, 15 Oct 2020 04:25:01 +0100 From: Al Viro To: Chengguang Xu Cc: miklos@szeredi.hu, amir73il@gmail.com, jack@suse.cz, linux-unionfs@vger.kernel.org, linux-fsdevel@vger.kernel.org Subject: Re: [RFC PATCH 1/5] fs: introduce notifier list for vfs inode Message-ID: <20201015032501.GO3576660@ZenIV.linux.org.uk> References: <20201010142355.741645-1-cgxu519@mykernel.net> <20201010142355.741645-2-cgxu519@mykernel.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20201010142355.741645-2-cgxu519@mykernel.net> Sender: Al Viro Precedence: bulk List-ID: X-Mailing-List: linux-fsdevel@vger.kernel.org On Sat, Oct 10, 2020 at 10:23:51PM +0800, Chengguang Xu wrote: > Currently there is no notification api for kernel about modification > of vfs inode, in some use cases like overlayfs, this kind of notification > will be very helpful to implement containerized syncfs functionality. > As the first attempt, we introduce marking inode dirty notification so that > overlay's inode could mark itself dirty as well and then only sync dirty > overlay inode while syncfs. Who's responsible for removing the crap from notifier chain? And how does that affect the lifetime of inode?