drm/vmwgfx: Replace unconditional mutex unlocked warnings with lockdep counterpart
authorThomas Hellstrom <thellstrom@vmware.com>
Wed, 26 Sep 2018 13:39:24 +0000 (15:39 +0200)
committerThomas Hellstrom <thellstrom@vmware.com>
Thu, 27 Sep 2018 13:21:37 +0000 (15:21 +0200)
commitd76ce03e1a7870ca6351610cf30bcf62949ea900
treee16b14a1d94657dd1cbf6532686488e8ea1b40c4
parentcc1e3b796b463c1cb2e8225b456af939b3bf21c3
drm/vmwgfx: Replace unconditional mutex unlocked warnings with lockdep counterpart

Replace instances of WARN_ON[_ONCE](!mutex_is_held()) with
lockdep_assert_held(). This makes sure the checking process actually
holds the mutex and also removes the checks from release builds

Signed-off-by: Thomas Hellstrom <thellstrom@vmware.com>
Reviewed-by: Sinclair Yeh <syeh@vmware.com>
Reviewed-by: Deepak Rawat <drawat@vmware.com>
drivers/gpu/drm/vmwgfx/vmwgfx_cmdbuf.c
drivers/gpu/drm/vmwgfx/vmwgfx_shader.c
drivers/gpu/drm/vmwgfx/vmwgfx_so.c