dma-buf/reservation: Wrap ww_mutex_trylock
authorChris Wilson <chris@chris-wilson.co.uk>
Tue, 21 Feb 2017 09:30:00 +0000 (09:30 +0000)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Sun, 26 Feb 2017 21:43:44 +0000 (22:43 +0100)
commit2955b73def6712b693fc7ad82b34b3831faaa146
tree95983cbd22bb21266c19ee0e4abafc4641d34190
parent5f15257689bfaacfc1ecd7d91a2e0515a5d3d104
dma-buf/reservation: Wrap ww_mutex_trylock

In a similar fashion to reservation_object_lock() and
reservation_object_unlock(), ww_mutex_trylock is also useful and so is
worth wrapping for consistency.

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>
Cc: Daniel Vetter <daniel.vetter@ffwll.ch>
[danvet: Add __must_check Joonas wants.]
Reviewed-by: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Link: http://patchwork.freedesktop.org/patch/msgid/20170221093000.22802-1-chris@chris-wilson.co.uk
include/linux/reservation.h