[Intel-gfx] [PATCH 1/2] drm/i915/gem: Taint all shrinkable object locks

Matthew Auld matthew.william.auld at gmail.com
Fri May 29 20:13:19 UTC 2020


On Fri, 29 May 2020 at 19:32, Chris Wilson <chris at chris-wilson.co.uk> wrote:
>
> If we declare that an object type is shrinkable (any that we can reclaim
> to recover system pages), make sure we taint the object mutex so that
> lockdep expects us to use it within fs_reclaim. lockdep will then
> complain the first time we try to allocate while holding the plain
> mutex, as doing so invites potential recursion.
>
> Signed-off-by: Chris Wilson <chris at chris-wilson.co.uk>
Reviewed-by: Matthew Auld <matthew.auld at intel.com>


More information about the Intel-gfx mailing list