Re: [PATCH v4 02/10] locking: introduce devm_mutex_init

2023-12-18 Thread George Stark
Hello Christophe On 12/17/23 12:31, Christophe Leroy wrote: ... ---     include/linux/mutex.h    | 23 +++     kernel/locking/mutex-debug.c | 22 ++     2 files changed, 45 insertions(+) diff --git a/include/linux/mutex.h b/include/linux/mutex.h in

Re: [PATCH v4 02/10] locking: introduce devm_mutex_init

2023-12-17 Thread Christophe Leroy
Le 17/12/2023 à 02:05, George Stark a écrit : > [Vous ne recevez pas souvent de courriers de gnst...@salutedevices.com. > Découvrez pourquoi ceci est important à > https://aka.ms/LearnAboutSenderIdentification ] > > Hello Christophe > > On 12/15/23 08:46, Christophe Leroy wrote: >> >> >> Le 1

Re: [PATCH v4 02/10] locking: introduce devm_mutex_init

2023-12-16 Thread George Stark
Hello Christophe On 12/15/23 08:46, Christophe Leroy wrote: Le 14/12/2023 à 22:48, Waiman Long a écrit : On 12/14/23 14:53, Christophe Leroy wrote: Le 14/12/2023 à 19:48, Waiman Long a écrit : On 12/14/23 12:36, George Stark wrote: Using of devm API leads to a certain order of releasing r

Re: [PATCH v4 02/10] locking: introduce devm_mutex_init

2023-12-14 Thread Christophe Leroy
Le 14/12/2023 à 22:48, Waiman Long a écrit : > On 12/14/23 14:53, Christophe Leroy wrote: >> >> Le 14/12/2023 à 19:48, Waiman Long a écrit : >>> On 12/14/23 12:36, George Stark wrote: Using of devm API leads to a certain order of releasing resources. So all dependent resources which are

Re: [PATCH v4 02/10] locking: introduce devm_mutex_init

2023-12-14 Thread Waiman Long
On 12/14/23 14:53, Christophe Leroy wrote: Le 14/12/2023 à 19:48, Waiman Long a écrit : On 12/14/23 12:36, George Stark wrote: Using of devm API leads to a certain order of releasing resources. So all dependent resources which are not devm-wrapped should be deleted with respect to devm-release

Re: [PATCH v4 02/10] locking: introduce devm_mutex_init

2023-12-14 Thread Christophe Leroy
Le 14/12/2023 à 19:48, Waiman Long a écrit : > > On 12/14/23 12:36, George Stark wrote: >> Using of devm API leads to a certain order of releasing resources. >> So all dependent resources which are not devm-wrapped should be deleted >> with respect to devm-release order. Mutex is one of such obj

Re: [PATCH v4 02/10] locking: introduce devm_mutex_init

2023-12-14 Thread Christophe Leroy
Le 14/12/2023 à 18:36, George Stark a écrit : > [Vous ne recevez pas souvent de courriers de gnst...@salutedevices.com. > Découvrez pourquoi ceci est important à > https://aka.ms/LearnAboutSenderIdentification ] > > Using of devm API leads to a certain order of releasing resources. > So all de

Re: [PATCH v4 02/10] locking: introduce devm_mutex_init

2023-12-14 Thread Waiman Long
On 12/14/23 12:36, George Stark wrote: Using of devm API leads to a certain order of releasing resources. So all dependent resources which are not devm-wrapped should be deleted with respect to devm-release order. Mutex is one of such objects that often is bound to other resources and has no ow

[PATCH v4 02/10] locking: introduce devm_mutex_init

2023-12-14 Thread George Stark
Using of devm API leads to a certain order of releasing resources. So all dependent resources which are not devm-wrapped should be deleted with respect to devm-release order. Mutex is one of such objects that often is bound to other resources and has no own devm wrapping. Since mutex_destroy() actu