Re: [PATCH] block: assign caller-specific lockdep class to disk->open_mutex
From: Christoph Hellwig
Date: Mon Jun 01 2026 - 03:12:04 EST
On Sat, May 30, 2026 at 02:15:04PM -0700, Bart Van Assche wrote:
> On 5/30/26 6:45 AM, Tetsuo Handa wrote:
>> - static struct lock_class_key __key; \
>> + static struct lock_class_key __key[2]; \
> The two elements of this array have different roles. From the point of
> view of code readability and maintainability it's probably much better
> to make this a struct with two named members rather than a two-element
> array.
Exactly.