Re: [RFC PATCH 1/3] workqueue: Add interface for user-defined workqueue lockdep map

2024-07-30 Thread Matthew Brost
On Tue, Jul 30, 2024 at 12:56:17PM -1000, Tejun Heo wrote: > On Tue, Jul 30, 2024 at 10:53:38PM +, Matthew Brost wrote: > > I didn't want to change the export alloc_workqueue() arguments so I went > > with this approach. Are you suggesting export a new function > > alloc_workqueue_lockdep_map()

Re: [RFC PATCH 1/3] workqueue: Add interface for user-defined workqueue lockdep map

2024-07-30 Thread Tejun Heo
On Tue, Jul 30, 2024 at 10:53:38PM +, Matthew Brost wrote: > I didn't want to change the export alloc_workqueue() arguments so I went > with this approach. Are you suggesting export a new function > alloc_workqueue_lockdep_map() which will share an internal > implementation with the existing al

Re: [RFC PATCH 1/3] workqueue: Add interface for user-defined workqueue lockdep map

2024-07-30 Thread Matthew Brost
On Tue, Jul 30, 2024 at 12:34:08PM -1000, Tejun Heo wrote: > Hello, Matthew. > > On Tue, Jul 30, 2024 at 03:17:40PM -0700, Matthew Brost wrote: > > +/** > > + * wq_init_user_lockdep_map - init user lockdep map for workqueue > > + * @wq: workqueue to init lockdep map for > > + * @lockdep_map: lockd

Re: [RFC PATCH 1/3] workqueue: Add interface for user-defined workqueue lockdep map

2024-07-30 Thread Tejun Heo
Hello, Matthew. On Tue, Jul 30, 2024 at 03:17:40PM -0700, Matthew Brost wrote: > +/** > + * wq_init_user_lockdep_map - init user lockdep map for workqueue > + * @wq: workqueue to init lockdep map for > + * @lockdep_map: lockdep map to use for workqueue > + * > + * Initialize workqueue with a user