dma-buf: Provide wrappers for reservation's lock
authorChris Wilson <chris@chris-wilson.co.uk>
Tue, 15 Nov 2016 15:46:42 +0000 (15:46 +0000)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Mon, 12 Dec 2016 06:54:43 +0000 (07:54 +0100)
commit122020af856181c24fe45903e43e3cc987c175f7
tree1051070c15768f36ca3c45442f40e0bbfceceb91
parent7da0e124af76c79927f0d7abcc58d58d0fd7072f
dma-buf: Provide wrappers for reservation's lock

Joonas complained that writing ww_mutex_lock(&resv->lock, ctx) was too
intrusive compared to reservation_object_lock(resv, ctx);

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Sumit Semwal <sumit.semwal@linaro.org>
Cc: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Link: http://patchwork.freedesktop.org/patch/msgid/20161115154642.31850-1-chris@chris-wilson.co.uk
include/linux/reservation.h