Re: [PATCH] connector: Change the judgment conditions for clearing proc_event_num_listeners

From: Jakub Kicinski
Date: Mon Jan 15 2024 - 18:59:55 EST


On Mon, 15 Jan 2024 17:26:39 +0800 (CST) wangkeqi wrote:
> From: wangkeqi <wangkeqiwang@xxxxxxxxxxxxxx>
>
> It is inaccurate to judge whether proc_event_num_listeners is
> cleared by cn_netlink_send_mult returning -ESRCH.
> In the case of stress-ng netlink-proc, -ESRCH will always be returned,
> because netlink_broadcast_filtered will return -ESRCH,
> which may cause stress-ng netlink-proc performance degradation.
> Therefore, the judgment condition is modified to whether
> there is a listener.
>
> Reported-by: kernel test robot <oliver.sang@xxxxxxxxx>
> Closes: https://lore.kernel.org/oe-lkp/202401112259.b23a1567-oliver.sang@xxxxxxxxx
> Signed-off-by: wangkeqi <wangkeqiwang@xxxxxxxxxxxxxx>
> Cc: fengwei.yin@xxxxxxxxx

Please stop posting the patches as a reply to the previous submission
with a quote at the end.. Post the new version generated by git with
--subject-prefix="PATCH net v2" and send it with git send-email as
a new thread.

Please add an appropriate Fixes tag.
--
pw-bot: cr