Re: [PATCH] rtnl: Add guard support

From: Eric Dumazet

Date: Sat Nov 29 2025 - 03:35:40 EST


On Fri, Nov 28, 2025 at 7:45 PM Jakub Kicinski <kuba@xxxxxxxxxx> wrote:
>
> On Fri, 28 Nov 2025 16:34:55 +0800 Fushuai Wang wrote:
> > Introduce guard support to simplify the usage of the
> > lock about rtnl.
>
> We don't accept APIs without a user.
>
> Also in this case please read:
> https://www.kernel.org/doc/html/next/process/maintainer-netdev.html#using-device-managed-and-cleanup-h-constructs

Another argument is that we are working hard to _remove_ RTNL these days.
This is a multi-years huge effort.

Adding such helpers are spreading a wrong signal : "Look how it is
easy to add more RTNL sections in the kernel"