Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp647224imw; Fri, 8 Jul 2022 09:11:43 -0700 (PDT) X-Google-Smtp-Source: AGRyM1uwz16Y4jV4AFnbpqBz+CR0j3gtLywDyrvdDQzViW17ZVOW8j0+zb7tnqEF6wW68zYJouqj X-Received: by 2002:a17:906:794f:b0:72b:1346:85a3 with SMTP id l15-20020a170906794f00b0072b134685a3mr4166578ejo.259.1657296703315; Fri, 08 Jul 2022 09:11:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1657296703; cv=none; d=google.com; s=arc-20160816; b=s3Hok4rV7Vn0bkWzUv7DDWjwvWKm/llZ0r576llrveDiy+dpyUhhfNAWja9ZBNs5Xb y2XHcAs85EG96GYj1XL5Ay4Id+pZAXeGtoeOyYMo/97bs20KCrzC7DhPQdzH3sMZwYDF 9tVcAgVjqpmdW55Nb8On5vXbcV4IIESfmk01bwa2a6jf8u3ZQBOmDML+Y8NeMBgmGlkT Cn1j2/3sntBpIFyOwouwo4zU9YKju2Z4AxblnVAolQscXqamKO6ft/0ZGxP9JivVVgrS qj2J4wwMpe/nDnwwl9fDenRvjR38vke796iJQQAunZnqnIcmxahMBxw0yOT6HadBmd+8 qAaA== 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=JIFsfOSVQfXvBX0XrqyFJCcU4eKxtUIBtIyIMnlR/d0=; b=c0ztZNEg3n/s1EooyvIyg0BRk0zSg7vGtGU4hDKEyFdiF7Qv9rleZVqhCJzaB0+HjZ XeYyVRPvV1g8fprBO9O0wimjBc0A5Zfo6zZ4MqdKMiDqopXfyctWbpWqZPYD4C8DrWDq eM87THkEbAp1p70LvPiXvxQMICgpR1+1fQguCEM2s7dTDqUkcSV5jFyCW07G6Dxt0BQm piioc0/E+qGpLg0SxAKJdav2np5Mcuf7j4JlnFuSi2Xyl7o+JJBDb3+1EXNcyG71P3v1 UM5qHNMEKP91ZFSsxsXQMq7+Ys2BljXFJ8AVeX1XTxV6+Gbkn6QmWuBK0iXDb5v10598 /FlQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=Xl8u1ENI; 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 cq4-20020a056402220400b0043a283ef37fsi18253718edb.427.2022.07.08.09.11.07; Fri, 08 Jul 2022 09:11:43 -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=@gmail.com header.s=20210112 header.b=Xl8u1ENI; 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 S238909AbiGHP7b (ORCPT + 99 others); Fri, 8 Jul 2022 11:59:31 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42526 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238414AbiGHP73 (ORCPT ); Fri, 8 Jul 2022 11:59:29 -0400 Received: from mail-yb1-xb2a.google.com (mail-yb1-xb2a.google.com [IPv6:2607:f8b0:4864:20::b2a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 24EE46D55C; Fri, 8 Jul 2022 08:59:29 -0700 (PDT) Received: by mail-yb1-xb2a.google.com with SMTP id n74so8864284yba.3; Fri, 08 Jul 2022 08:59:29 -0700 (PDT) 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=JIFsfOSVQfXvBX0XrqyFJCcU4eKxtUIBtIyIMnlR/d0=; b=Xl8u1ENIUNBQhTTOE5t4JNqEmRipm9EBBREnAES0k9aa1UbMLxMBTGsusTv203kd9s 0fZc8DLeOOiBt7Kb5aoI0qsl/VkODJAA9j6bRtMpEooSocNgj5JIhlvNKO24FkkWZtQl vUwWG/w+DvDQ0+PE3qWWeclifxolJwG4zkyOZpvlzdYetzKeQttoF5LCsgKSBgCX7DXv lWxyG/CWauM7LGsRfW9YTWu/I6sjJOUKSzH4BraS8GwoYzFvdf0eWLE1SI+YJVMvsDiS PqtVEzEGfu/Ld0XfvNR+fLXzRmLEREfG7NLoNiu9FGpYqHrqOCwZ4d4G4pfYMGXfpE7C W9IQ== 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=JIFsfOSVQfXvBX0XrqyFJCcU4eKxtUIBtIyIMnlR/d0=; b=OFqeTAOxCcIlp9DJOXrBIAod3vpLpIfshQ4Wvv8YuYwS1bJqRh1aMir+xNNgfuOUMt r/lzC8qfV64YqWOeeRno19ONImXOjRkeds8++7eow21KhcYGG4MUuhcq4kfU0msGFHqS LbdYSiPA11fhNH4FtfEWnLX1F3ndB7PP1daBTVeZxJEuPDC2LqV4eQ8jLvC2f9Oz9IfQ J4PFc8mgGpUvFjADyrFWUYkPHLCG5m7my/DHVO7UYy1mQJAaEhmGtI4XZEvljbXfvUe/ p5cv34plDz0uB2Y/jy3qY7BRsgdvbHfeuGzcD65db1P5UE/Z+sXcIuwBB+noExrY8+Y0 6NBA== X-Gm-Message-State: AJIora/2kYBwo0yx8AbEvWANV2RyBdoxl65QU9H7BD5fgducLgCKZZCl L+21l5hiiksezMgOMYV9FOLEQ+RXSDW0ryKgFlM= X-Received: by 2002:a25:cbcf:0:b0:66e:8893:a02c with SMTP id b198-20020a25cbcf000000b0066e8893a02cmr4399948ybg.460.1657295968321; Fri, 08 Jul 2022 08:59:28 -0700 (PDT) MIME-Version: 1.0 References: <20220701154604.2211008-1-imran.f.khan@oracle.com> In-Reply-To: <20220701154604.2211008-1-imran.f.khan@oracle.com> From: Andy Shevchenko Date: Fri, 8 Jul 2022 17:58:51 +0200 Message-ID: Subject: Re: [RESEND PATCH] kernfs: Avoid re-adding kernfs_node into kernfs_notify_list. To: Imran Khan Cc: Tejun Heo , Greg Kroah-Hartman , Alexander Viro , Marek Szyprowski , Nathan Chancellor , Michael Walle , Rob Herring , "open list:SERIAL DRIVERS" , Linux Kernel Mailing List , Guillaume Tucker , Petr Mladek 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, Jul 1, 2022 at 5:49 PM Imran Khan wrote: ... > + if (kn->attr.notify_next.next != NULL) { Isn't there a helper to get next pointer from an llist pointer? > + kernfs_get(kn); > + llist_add(&kn->attr.notify_next, &kernfs_notify_list); > + schedule_work(&kernfs_notify_work); > + } -- With Best Regards, Andy Shevchenko