[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20240325190957.02d74258@kernel.org>
Date: Mon, 25 Mar 2024 19:09:57 -0700
From: Jakub Kicinski <kuba@...nel.org>
To: Johannes Berg <johannes@...solutions.net>
Cc: netdev@...r.kernel.org
Subject: Re: [PATCH 0/3] using guard/__free in networking
On Mon, 25 Mar 2024 23:31:25 +0100 Johannes Berg wrote:
> Hi,
>
> So I started playing with this for wifi, and overall that
> does look pretty nice, but it's a bit weird if we can do
>
> guard(wiphy)(&rdev->wiphy);
>
> or so, but still have to manually handle the RTNL in the
> same code.
Dunno, it locks code instead of data accesses.
Forgive the comparison but it feels too much like Java to me :)
scoped_guard is fine, the guard() not so much.
But happy for other netdev maintainers to override me..
Do you have a piece of code in wireless where the conversion
made you go "wow, this is so much cleaner"?
Powered by blists - more mailing lists