Received: by 2002:a05:6a10:2726:0:0:0:0 with SMTP id ib38csp1161752pxb; Wed, 6 Apr 2022 10:09:57 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzEbRXGj5ohfKXwIKtfxfktkGOwyGnTD7Nj5G7dzZ5l7fY0CuM1Eh166Qq95A62aK5jDbfg X-Received: by 2002:a17:90a:d584:b0:1b8:7864:1735 with SMTP id v4-20020a17090ad58400b001b878641735mr11027445pju.126.1649264997155; Wed, 06 Apr 2022 10:09:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1649264997; cv=none; d=google.com; s=arc-20160816; b=eVeNwh7AcOOXdlJ/zAox1a+A/ckFcKw6tw3KNd9ceWhKDf92kx8myMvDuCiJmtkQDs VPFbiV9Xtg2vXMZyG2NCuN9bPtGA4/vRohnf7ckQkOLbVeY1BYwbzsOyKDz70hus+ZBB cguFC35xtSU6UHpKy7DuVZ9F09hCIDVs71/mDfiEe9kuf3KzoGZi8mNkH3ABvicBWL7i iuV/8u+AjtmjJHm4ZEwVD/mIJnc1OuOAAnERuo+EO00aVTgGIASgvLxQMtBTrFSzu5H0 johCP4xkmw3VyYiArhACj7bzAhqi+EnuAQmBxl2OwioCX3T811fAZv/5BXEUOwL6ppA4 CWhw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=B10soQAROjAGizcB6m2pLuc7Finz9LgnWyDNUbVwfpU=; b=Pjlx1GThK6WyRm8v9ebRhDjQrse7g8mFHExzlra2goh8f5jVq2w+VBFwsz/Ptt86RG Y+t5IZ0sOOKHWnBPpomJGZB0qY5I1w15aW4gphr/HFFLB4JcxBalsRTtKt+JXrMQACfV mNooe6owSa1swwDPeBLBylCsj8bLfi3F3vhO4niwbhNRvl7daCSyoIyJxQL7PbmIHXLB V/Irws+JSvqTW+QZLEomEL9IVuyCmHIQk4uDAFD2mLDtPckphTn2azb35Hkh2ZJKFK6C IBGwBYtF/S2rH8+n3QYB6UBejq4P8Kqq6+tlTaPQWgUUSz5jaAWuWY8h70cSOTgCkeWc obMQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux.org.uk header.s=zeniv-20220401 header.b="s8u2iS/a"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=zeniv.linux.org.uk Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id 23-20020a630117000000b0039cb90dd2e9si1115007pgb.132.2022.04.06.10.09.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 06 Apr 2022 10:09:57 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@linux.org.uk header.s=zeniv-20220401 header.b="s8u2iS/a"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=zeniv.linux.org.uk Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 5DE7310FDEE; Wed, 6 Apr 2022 09:54:52 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238236AbiDFQ4p (ORCPT + 99 others); Wed, 6 Apr 2022 12:56:45 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59296 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238197AbiDFQ4V (ORCPT ); Wed, 6 Apr 2022 12:56:21 -0400 Received: from zeniv-ca.linux.org.uk (zeniv-ca.linux.org.uk [IPv6:2607:5300:60:148a::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 993F3169B1E for ; Wed, 6 Apr 2022 07:54:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=linux.org.uk; s=zeniv-20220401; h=Sender:In-Reply-To:Content-Type: MIME-Version:References:Message-ID:Subject:Cc:To:From:Date:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=B10soQAROjAGizcB6m2pLuc7Finz9LgnWyDNUbVwfpU=; b=s8u2iS/ajJ1VZ9L7k+uht6nJDO SwmRpLob6jYtHNIkDhCMhqnuoURinLawIE2e0DjSoVXDo8ZWiOfJ3Nh0lZHZBcNOflk6u/D6zUhoX bO0/lVcCBbrlUO446gLWOdEiZTi28yYI4GjA20LhHoqdXfdGSeeV3GcYM6y1+orn2JtGLz6L1PAvC BWKxhNIVp2dVgBFSPeWpQAbKEZJDU1viVyBqZJGjwZ3z18eBuMJDl+euvHe3IywGjOiL7RiZIbBaf 8Lnr/7Vin+8c6q4lzklSTzloqHiy1M0XPhmEm1PPE4kh/JgKC7PhQ58OE/gWRCQkjAJvHvyFYBkRy 0u6m2nnw==; Received: from viro by zeniv-ca.linux.org.uk with local (Exim 4.94.2 #2 (Red Hat Linux)) id 1nc73U-003AgN-Io; Wed, 06 Apr 2022 14:54:44 +0000 Date: Wed, 6 Apr 2022 14:54:44 +0000 From: Al Viro To: Imran Khan Cc: tj@kernel.org, gregkh@linuxfoundation.org, linux-kernel@vger.kernel.org Subject: Re: [RESEND PATCH v7 1/8] kernfs: Introduce interface to access global kernfs_open_file_mutex. Message-ID: References: <20220317072612.163143-1-imran.f.khan@oracle.com> <20220317072612.163143-2-imran.f.khan@oracle.com> <10b5d071-7f69-da59-6395-064550c6c6cb@oracle.com> <0dfe1056-3dc5-4d31-698e-e2c075ffd6ee@oracle.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <0dfe1056-3dc5-4d31-698e-e2c075ffd6ee@oracle.com> Sender: Al Viro X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RDNS_NONE, SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no 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 Wed, Apr 06, 2022 at 02:54:19PM +1000, Imran Khan wrote: > > BTW, speaking of kernfs_notify() - can calls of that come from NMI handlers? > > If not, I'd consider using llist for kernfs_notify_list... > > I see it gets invoked from 3 places only: cgroup_file_notify, > sysfs_notify and sysfs_notify_dirent. So kernfs_notify should not be > getting invoked in NMI context. I will make the llist transition in next > version. Er... Are you sure neither of those is ever called from something that is called from .... from NMI? It might never happen, but there's a plenty of callchains leading to that thing and no obvious obstacles for some of those to come from NMI context; I don't see it documented anywhere either. Tejun, could you comment on that one?