Desmond Cheong Zhi Xi 649839d7cf drm: add lockdep assert to drm_is_current_master_locked
In drm_is_current_master_locked, accessing drm_file.master should be
protected by either drm_file.master_lookup_lock or
drm_device.master_mutex. This was previously awkward to assert with
lockdep.

Following patch ("locking/lockdep: Provide lockdep_assert{,_once}()
helpers"), this assertion is now convenient. So we add in the
assertion and explain this lock design in the kerneldoc.

Signed-off-by: Desmond Cheong Zhi Xi <desmondcheongzx@gmail.com>
Acked-by: Boqun Feng <boqun.feng@gmail.com>
Acked-by: Waiman Long <longman@redhat.com>
Acked-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Link: https://patchwork.freedesktop.org/patch/msgid/20210802105957.77692-3-desmondcheongzx@gmail.com
2021-08-05 12:08:15 +02:00
..
2021-07-29 09:12:01 +02:00
2021-06-11 12:30:39 -07:00
2021-07-21 11:58:28 +10:00
2021-03-26 11:46:33 +01:00
2021-08-02 16:41:20 +02:00
2020-09-17 13:39:44 +02:00
2020-07-16 18:16:31 -04:00
2021-03-16 13:12:46 +01:00
2019-12-18 16:09:12 -05:00