drm/msm/gem: Drop obj lock in msm_gem_free_object()
authorRob Clark <robdclark@chromium.org>
Mon, 13 Jun 2022 20:50:32 +0000 (13:50 -0700)
committerRob Clark <robdclark@chromium.org>
Thu, 7 Jul 2022 01:54:41 +0000 (18:54 -0700)
commita414fe3a2129b490e1e9b8ad66f0364f4f961887
treedc89d856d99e9f391a49e88dee1848bcfd3f9f98
parentff46c2c481f2a379c457f2a815afdd6819521cc0
drm/msm/gem: Drop obj lock in msm_gem_free_object()

The only reason we grabbed the lock was to satisfy a bunch of places
that WARN_ON() if called without the lock held.  But this angers lockdep
which doesn't realize no one else can be holding the lock by the time we
end up destroying the object (and sees what would otherwise be a locking
inversion between reservation_ww_class_mutex and fs_reclaim).

Closes: https://gitlab.freedesktop.org/drm/msm/-/issues/14
Signed-off-by: Rob Clark <robdclark@chromium.org>
Patchwork: https://patchwork.freedesktop.org/patch/489364/
Link: https://lore.kernel.org/r/20220613205032.2652374-1-robdclark@gmail.com
drivers/gpu/drm/msm/msm_gem.c
drivers/gpu/drm/msm/msm_gem.h