Re: [PATCH net-next v2 1/2] lockdep: Introduce in_softirq lockdep assert

From: Peter Zijlstra
Date: Tue Nov 24 2020 - 03:11:42 EST


On Mon, Nov 23, 2020 at 12:12:59PM -0800, Jakub Kicinski wrote:
> One liner would be:
>
> * Acceptable for protecting per-CPU resources accessed from BH
>
> We can add:
>
> * Much like in_softirq() - semantics are ambiguous, use carefully. *
>
>
> IIUC we basically want to protect the nc array and counter here:

Works for me, thanks!