Re: [PATCH net-next v1 3/4] net: add granular lock for the netdev netlink socket
From: Stanislav Fomichev
Date: Fri Mar 07 2025 - 14:35:34 EST
On 03/07, Jakub Kicinski wrote:
> On Fri, 7 Mar 2025 07:57:24 -0800 Stanislav Fomichev wrote:
> > As we move away from rtnl_lock for queue ops, introduce
> > per-netdev_nl_sock lock.
>
> What is it protecting?
The 'bindings' field of the netlink socket:
struct netdev_nl_sock {
struct mutex lock;
struct list_head bindings; <<<
};
I'm assuming it's totally valid to have several bindings per socket?
(attached to different rx queues)