]> git.baikalelectronics.ru Git - kernel.git/commit
drm/lease: Check for lessor outside of locks
authorDaniel Vetter <daniel.vetter@ffwll.ch>
Thu, 28 Feb 2019 14:49:07 +0000 (15:49 +0100)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Wed, 24 Apr 2019 09:29:32 +0000 (11:29 +0200)
commit4360721fd08155ecafa46b50a7dc0fa7dc770d68
tree54d8db19d6529a1335125d9fb90217f7aead66bd
parentfe95af61826ab80a1efd5f6d000e4f3d097c344f
drm/lease: Check for lessor outside of locks

The lessor is invariant over a lifetime of a lease, we don't have to
grab any locks for that. Speeds up the common case of not being a lease.

Cc: Keith Packard <keithp@keithp.com>
Reviewed-by: Boris Brezillon <boris.brezillon@collabora.com>
Reviewed-by: Dave Airlie <airlied@redhat.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Link: https://patchwork.freedesktop.org/patch/msgid/20190228144910.26488-5-daniel.vetter@ffwll.ch
drivers/gpu/drm/drm_lease.c