Re: [PATCH RFC 00/33] Compile-time thread-safety checking

From: Peter Zijlstra
Date: Fri Feb 07 2025 - 04:08:41 EST


On Fri, Feb 07, 2025 at 10:05:47AM +0100, Marco Elver wrote:

> Yes, you can add multiple guarded_by. But it's just going to enforce
> that you need to hold both locks before you access the member. If you
> want the rules to be more complex, the best way to express that is with
> some helpers. E.g. something like this (tested on top my series)

Oh gawd, this is going to be a pain, isn't it :/