Received: by 2002:a05:6358:c692:b0:131:369:b2a3 with SMTP id fe18csp4876130rwb; Mon, 31 Jul 2023 13:53:23 -0700 (PDT) X-Google-Smtp-Source: APBJJlGUnr2Iv9/raXIiUdho7uzWrpKlGAm2NXmlOv5DlwaJ+RJ/zycdm6jfqX82VJF8SeUQq/yi X-Received: by 2002:a05:6a20:4411:b0:10f:1d33:d667 with SMTP id ce17-20020a056a20441100b0010f1d33d667mr14190600pzb.5.1690836803572; Mon, 31 Jul 2023 13:53:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690836803; cv=none; d=google.com; s=arc-20160816; b=EP9wHKHXEkuzVvsaaOGv8Yn8NX3+Kz0RQj6ykFsaII7xrUEh/Q0dUD4wc3u/8Qs1dl m7nB9zlpcXvoAWVp8ZyKPmfM7BHCz0TFpdghrxDT8a9SgSk8qnE52i8qyHsjDz+hHfrD H3dkoowZ5exDbrfQ3uAJ9AZrucYLFX2YUmzg4JDhZoq5Gopu4LZUXFoRt0Tf2HVB6g1O XL7qgor5DIf+cURimoIa5v9f7poToMm714j5zhscDsC4brNV88YZRwKl1RP4tHa6PQoF ZfdJv00xEIYiMNhtERqoUlhq2dDQEH4QlEcmZvKgtU1XccTGnIi9cJOMjZvLSs9cHKlS nRZA== 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=tSrMC3+SJ0egYG0f2gwoLknFT0dgY+FAasCFfQTvvxk=; fh=CobK0D5uYKS1hvfcACY3D2nRI4eROKCkOl673nicCos=; b=sh5voLy6I7h3hKditTn6UR/V+atdN23MX7yQ0VryZvbszV0kzsAR0msq1vFODmIjfn THBhWlJjElqGFR0eHvoqVhBS8AXl7KAORecl9FeVvLOZaY7e5TF1qcQHHpWy+aCCRJTG LS1/5HaoHmCBmUTYRbvkfaHu/WA1ijsYY7yoFHGKxtoMKvzUhFcgF83Uxs7CDRqU+AXT hYPEZq3cBSe7lZ8HIZxNks1ySBmK+6gojX0c4xSSBvfKP4hPYfiSj4IgtUPdlQHW8MOb s8qSrM705/EvAmMzfzwZZkQuSzEJQB7ow5T0nint2VOdS0crcbiR/Ym5m49R/XCfL+AX 4PxQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@cloudflare.com header.s=google header.b="TPZP/yMb"; 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=REJECT sp=REJECT dis=NONE) header.from=cloudflare.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id fi25-20020a056a00399900b0066767d61b7esi7905741pfb.331.2023.07.31.13.53.11; Mon, 31 Jul 2023 13:53:23 -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=@cloudflare.com header.s=google header.b="TPZP/yMb"; 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=REJECT sp=REJECT dis=NONE) header.from=cloudflare.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230331AbjGaStj (ORCPT + 99 others); Mon, 31 Jul 2023 14:49:39 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37318 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230098AbjGaSti (ORCPT ); Mon, 31 Jul 2023 14:49:38 -0400 Received: from mail-wr1-x429.google.com (mail-wr1-x429.google.com [IPv6:2a00:1450:4864:20::429]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B82BD189 for ; Mon, 31 Jul 2023 11:49:36 -0700 (PDT) Received: by mail-wr1-x429.google.com with SMTP id ffacd0b85a97d-3178dd771ceso3436491f8f.2 for ; Mon, 31 Jul 2023 11:49:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cloudflare.com; s=google; t=1690829375; x=1691434175; 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=tSrMC3+SJ0egYG0f2gwoLknFT0dgY+FAasCFfQTvvxk=; b=TPZP/yMbUeQTiuSSmHPaXqzypxoYzjL9bpLQpl0sY8BgdmcRkvH9tlSaOBGz+GX6Rw r7vFIC1zKA9ozOF6N2GPcB4UABRxXkHaRMY4XC4SVCpUl6dpAGWvWd5MVy3+9ZC0O4yV 65rxWUeZOu5KUypxo2o9f9h4X+VtKC6wRMJ6U= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1690829375; x=1691434175; 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=tSrMC3+SJ0egYG0f2gwoLknFT0dgY+FAasCFfQTvvxk=; b=Mg+T7+34zt88XJ8lmP2H2sh9qZRgfqOqzAPS6rDP7o8OPIZNTFEA7c8MN/D2TRJpjY k88arDvxVC5oJ3n9ewWHCg0W2GsMrwcrrFvBkB7rXYYn2s20Cy3a9Tso/A7lERhyk8AE Xum5Ny/mRNClTwcbLjfAZvZOx36OdQS5dn1Tzpe3tybXmMZFq1q0cmIK3mlZf46lXQEW Qo872XEaFot/RcOoFttoMkZsLvaaAdlVchU/rpmemMaSZFnm6pFCta55Np8L5BDtCRh4 yhYaZ4KBAWC/YTaIu7rimtLRVuA8jBO/wnfm3TwqEtxw32xbyFSMRDPq0Ys2K+Dbu7zr kPSQ== X-Gm-Message-State: ABy/qLaXPFDex3fjh90lzixkP2QlFHCPNmKAvdyJqA6tcTVPAGejFrf2 i8WumyUNG5GmLa0Ia2060l3b+4gIUyx8cTd0acCQzg== X-Received: by 2002:adf:ec0d:0:b0:314:3b9c:f02f with SMTP id x13-20020adfec0d000000b003143b9cf02fmr463450wrn.49.1690829375213; Mon, 31 Jul 2023 11:49:35 -0700 (PDT) MIME-Version: 1.0 References: <20230710183338.58531-1-ivan@cloudflare.com> <2023071039-negate-stalemate-6987@gregkh> <20230731134615.delje45enx3tkyco@quack3> In-Reply-To: <20230731134615.delje45enx3tkyco@quack3> From: Ivan Babrou Date: Mon, 31 Jul 2023 11:49:24 -0700 Message-ID: Subject: Re: [PATCH] kernfs: attach uuid for every kernfs and report it in fsid To: Jan Kara Cc: Amir Goldstein , Greg Kroah-Hartman , linux-fsdevel@vger.kernel.org, kernel-team@cloudflare.com, linux-kernel@vger.kernel.org, cgroups@vger.kernel.org, Tejun Heo , Hugh Dickins , Andrew Morton , Christoph Hellwig , Zefan Li , Johannes Weiner , Christian Brauner 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,DKIMWL_WL_MED, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_NONE,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 Mon, Jul 31, 2023 at 6:46=E2=80=AFAM Jan Kara wrote: > > I agree. I think it was a good decision. > > I have some followup questions though. > > > > I guess your use case cares about the creation of cgroups? > > as long as the only way to create a cgroup is via vfs > > vfs_mkdir() -> ... cgroup_mkdir() > > fsnotify_mkdir() will be called. > > Is that a correct statement? > > Because if not, then explicit fsnotify_mkdir() calls may be needed > > similar to tracefs/debugfs. > > > > I don't think that the statement holds for dieing cgroups, > > so explicit fsnotify_rmdir() are almost certainly needed to make > > inotify/fanotify monitoring on cgroups complete. > > Yeah, as Ivan writes, we should already have all that is needed to > generate CREATE and DELETE events for the cgroup filesystem. In theory > inotify or fanotify for inodes could be already used with cgroupfs now. > Thus I have no objection to providing fsid for it so that filesystem-wide > notifications can be used for it as well. Feel free to add: > > Acked-by: Jan Kara > > to your patch. Thank you, I just sent v2: * https://lore.kernel.org/linux-fsdevel/20230731184731.64568-1-ivan@cloudfl= are.com/