Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp4651760iob; Sun, 8 May 2022 20:39:41 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwXBURHBFD/uPcYCPr+EXVx6Lb+WKDOEAnwNFrci779JKfVlEMRNGhmZUtKdD9Ezas3CDRv X-Received: by 2002:a17:902:c409:b0:15e:bdd3:1fa3 with SMTP id k9-20020a170902c40900b0015ebdd31fa3mr14357834plk.67.1652067580923; Sun, 08 May 2022 20:39:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1652067580; cv=none; d=google.com; s=arc-20160816; b=nB1mlHHrU2VFoVv+3yi0IiXYmpIvx2G9c9VKafeeYBAHfo/Hwb4hoMjnNYqyJlEjm5 N8QNqLXRZndYxFFtOThzUDQeaRxq6tWVDKwNF1P/dJtr/HZiH26zti1cUbT7F+42pnx1 uPIRhuVkErf01R2ylaUCrSMHwExkULSr8OxdmAf6LIkquV57ToqQIogpi7VQSkfkp6Si zFidUB182ZPEPIV90aul8VLv5ObjnEp0VSmLSCPXuph4ZyMyLfhPsXPC4Eev0mUvSKih 09LpabhFZ/iVK1+tyBYMHmwUjfqy6xgkpOEnZ4x8ybg7VrL4rPP0rmHWM4jbk5vbymLi 2j7w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:sender:dkim-signature; bh=brkJ6owvYL1KoosVSZE4yumPgk1GO96GIBcBjKpOKvc=; b=N55w4Ab0YflX2QHxCrqr/+I3pbcFcXTLX2ciLfu1aY5xdFhs20umfXUHY2/Gu0Arjp D+/bjs1iQBJV9Btkp2S5UPzWDfEoEbUaAFDmxfhFt7hqSWCSTc/kdYYqQfUBW05nYsjj j8rtflK1tBpkWZxFqnni0k2nAkbpBKTT5A1pBRN0PX/qDNcTAt2pmmwz+qoGrdjeu92R fLq3wU9vd2K2fXHXECkS0ne/i7x/PK5D7K86I4Tb0jrQ0AtTF0DHZk9Tq5Zo6fUhLvMU eTBX+1itp+qYoWXlXThjFgEMgG1rDSBF+3mdivVm8oqbTTx+LrRsgeEoZ4Gd3v/wglPX w8nw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=omBR79tG; 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=kernel.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id q5-20020a170902eb8500b0015ecbfe06b6si9138347plg.419.2022.05.08.20.39.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 08 May 2022 20:39:40 -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=@gmail.com header.s=20210112 header.b=omBR79tG; 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=kernel.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 7FC70AF1EB; Sun, 8 May 2022 20:39:20 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1385512AbiEEUGo (ORCPT + 99 others); Thu, 5 May 2022 16:06:44 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54826 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S244961AbiEEUGm (ORCPT ); Thu, 5 May 2022 16:06:42 -0400 Received: from mail-pl1-x62d.google.com (mail-pl1-x62d.google.com [IPv6:2607:f8b0:4864:20::62d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C94B15EDF4 for ; Thu, 5 May 2022 13:03:02 -0700 (PDT) Received: by mail-pl1-x62d.google.com with SMTP id q4so2506173plr.11 for ; Thu, 05 May 2022 13:03:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=sender:date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=brkJ6owvYL1KoosVSZE4yumPgk1GO96GIBcBjKpOKvc=; b=omBR79tG1I04L4QPaHcpmVt4Hckx2Jx3tNtHLIg8QieI5aS2Ck0SMkoRFhw10ZtBVj DDDM9vzyz/kYTqIKGH9wwmiLZmZRcBplqc1BT7c3vP0RS0zs/RA34Tul698mcRglqjEp anCH5uR1UXdXTg3Stj/f9igDhwAEnGP8KIqDMnSAbCcrB4Ciq46FhoqEoe6D1zIKgCWm 8LncoIshUZUgdLrJWss2bJvGdKb3+0KhjTxWL+fp/gcnPSeU2hM32QKzceMLTEqp8ktk gHaHFzdEbQ9cyBo/3C3UOvcwHiu1CXJXwhwzUDQpYY9bK1jzy+zZ08e7X1N/UEDAfeKl PmCA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:sender:date:from:to:cc:subject:message-id :references:mime-version:content-disposition:in-reply-to; bh=brkJ6owvYL1KoosVSZE4yumPgk1GO96GIBcBjKpOKvc=; b=dJPOy31ZM2OS8VxxhwDKm+06xn5k8vxVF1t38k7O9CAelRZgFMApFF2+7rpN7udx1L qMlsqFdTV5zZ+0PgVwAelLuvwOaKAw+vfMbObBZlsX8P0rNUgryab5HLi6gibZC6wCpr Wl9Nn5tFvStGfBDtwEuAhVuzZPR5wInO7Evm5te75BZfEF8gl3eNc2iKJ8xnyA7YEZnu VEBjPzOPURcOcoL5z08r57Eph7Fa2eg5SN6eWK/xoBd4Ezk1097n4mUc7RaJGoTUHyJf /qTIOZTyvA3pX7lxykgXEqBEfKGEQaS8MH0f5auCSZ9YHYbrAy0TEd2nW22X07zk/uc7 D+iQ== X-Gm-Message-State: AOAM5306/mI6Y3OnXwHv40qN/G7iI2ssmQzcXoaIFIMgpcXfC59yaJvk KodQTbdjgf33r0eKJb35Eos= X-Received: by 2002:a17:90b:1b4d:b0:1dc:c33c:3fc9 with SMTP id nv13-20020a17090b1b4d00b001dcc33c3fc9mr12362pjb.123.1651780982218; Thu, 05 May 2022 13:03:02 -0700 (PDT) Received: from localhost ([2620:10d:c090:400::4:29a5]) by smtp.gmail.com with ESMTPSA id v68-20020a626147000000b0050dc762814asm1800181pfb.36.2022.05.05.13.03.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 05 May 2022 13:03:01 -0700 (PDT) Sender: Tejun Heo Date: Thu, 5 May 2022 10:03:00 -1000 From: Tejun Heo To: Imran Khan Cc: viro@zeniv.linux.org.uk, gregkh@linuxfoundation.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 3/5] kernfs: Change kernfs_notify_list to llist. Message-ID: References: <20220428055431.3826852-1-imran.f.khan@oracle.com> <20220428055431.3826852-4-imran.f.khan@oracle.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220428055431.3826852-4-imran.f.khan@oracle.com> X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,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 Thu, Apr 28, 2022 at 03:54:29PM +1000, Imran Khan wrote: > At present kernfs_notify_list is implemented as a singly linked > list of kernfs_node(s), where last element points to itself and > value of ->attr.next tells if node is present on the list or not. > Both addition and deletion to list happen under kernfs_notify_lock. > > Change kernfs_notify_list to llist so that addition to list can heppen > locklessly. We still need kernfs_notify_lock for consumers (kernfs_notify\ > _workfn) because there can be multiple concurrent work items. > > Suggested by: Al Viro > Signed-off-by: Imran Khan Acked-by: Tejun Heo Thanks. -- tejun