Re: [PATCH v2 2/3] locking/mutex: Introduce mutex_init_with_key()

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, Sep 5, 2024 at 11:47 PM Bart Van Assche <bvanassche@xxxxxxx> wrote:
>
> The following pattern occurs 5 times in kernel drivers:
>
>         lockdep_register_key(key);
>         __mutex_init(mutex, name, key);
>
> In several cases the 'name' argument matches #mutex. Hence, introduce
> the mutex_init_with_key() macro. This macro derives the 'name' argument
> from the 'mutex' argument.

FWIW,
Reviewed-by: Andy Shevchenko <andy.shevchenko@xxxxxxxxx>

-- 
With Best Regards,
Andy Shevchenko





[Index of Archives]     [Linux Media]     [Linux Input]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Old Linux USB Devel Archive]

  Powered by Linux