Subject: Re: [PATCH net-next 03/15] net/mlx5: HWS, denote how refcounts are protected

From: Jakub Kicinski <[email-masked]>
Date: Mon, 6 Jan 2025 16:36:24 -0800

On Thu, 2 Jan 2025 20:14:02 +0200 Tariq Toukan wrote:
> From: Yevgeny Kliteynik <[email-masked]>
> 
> Some HWS structs have refcounts that are just u32.
> Comment how they are protected and add '__must_hold()'
> annotation where applicable.

Out of curiosity -- do you have tooling which uses those annotations?
Can smatch use it? IIUC the sparse matching on the lock state is pretty
much disabled these days.