]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit3827adaa8cb6dcab9dc49ee8326e686d62181b23
treedc89d856d99e9f391a49e88dee1848bcfd3f9f98
parentf19f3ebe1e9b8edecbe9cb3b1ec1a1b26fe47b41
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