[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <ZqmQMl2yurl1mqL1@DUT025-TGLU.fm.intel.com>
Date: Wed, 31 Jul 2024 01:15:30 +0000
From: Matthew Brost <matthew.brost@...el.com>
To: Tejun Heo <tj@...nel.org>
CC: <intel-xe@...ts.freedesktop.org>, <dri-devel@...ts.freedesktop.org>,
<linux-kernel@...r.kernel.org>, <jiangshanlai@...il.com>,
<christian.koenig@....com>, <ltuikov89@...il.com>, <daniel@...ll.ch>
Subject: Re: [PATCH v2 3/5] workqueue: Add interface for user-defined
workqueue lockdep map
On Tue, Jul 30, 2024 at 02:36:13PM -1000, Tejun Heo wrote:
> Hello,
>
> On Tue, Jul 30, 2024 at 05:31:17PM -0700, Matthew Brost wrote:
> > +#define alloc_ordered_workqueue_lockdep_map(fmt, flags, lockdep_map, args...) \
> > + alloc_workqueue_lockdep_map(fmt, WQ_UNBOUND | __WQ_ORDERED | (flags), 1, lockdep_map, ##args)
> > +#endif
>
> alloc_ordered_workqueue() is a macro too but would you mind making this an
> inline function?
>
Not at all.
> > @@ -4795,11 +4795,17 @@ static void wq_init_lockdep(struct workqueue_struct *wq)
> >
> > static void wq_unregister_lockdep(struct workqueue_struct *wq)
> > {
> > + if (wq->flags & __WQ_USER_OWNED_LOCKDEP)
> > + return;
>
> Do you still need the flag? Can't you test wq->lockdep_map !=
> &wq->__lockdep_map instead?
>
Ah, yes. That is better. Will change.
Matt
> Thanks.
>
> --
> tejun
Powered by blists - more mailing lists