Re: [PATCH] drm/managed: Define drmm_mutex_init() as a macro to fix lockdep

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

 



On Fri, 19 May 2023 10:05:27 +0100
Matthew Auld <matthew.william.auld@xxxxxxxxx> wrote:

> On Fri, 19 May 2023 at 09:55, Boris Brezillon
> <boris.brezillon@xxxxxxxxxxxxx> wrote:
> >
> > drmm_mutex_init() needs to be defined as a macro if we want
> > lockdep to classify locks properly. If we don't do that, all locks
> > will be considered as belonging to the same lock class, leading to
> > false positive deadlock reports.
> >
> > Signed-off-by: Boris Brezillon <boris.brezillon@xxxxxxxxxxxxx>
> > Reported-by: Sarah Walker <sarah.walker@xxxxxxxxxx>  
> 
> Yeah, we also encountered the same issue. Patch is here:
> https://patchwork.freedesktop.org/patch/537605/?series=117891&rev=2

Cool! Added my R-b to this patch.



[Index of Archives]     [Linux DRI Users]     [Linux Intel Graphics]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [XFree86]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [XFree86]
  Powered by Linux