drm/vgem: Use ww_mutex_(un)lock even with a NULL context
authorNicolai Hähnle <Nicolai.Haehnle@amd.com>
Thu, 1 Dec 2016 14:06:44 +0000 (15:06 +0100)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Fri, 2 Dec 2016 16:15:20 +0000 (17:15 +0100)
commitad1231080be5a5cb34bbecf08fa3fea50209ef94
treec51848ab61bbed997ec5bc46b685583a94eb547a
parent949f08862d662f17b9d2929c6afb2d4e8f5d50cb
drm/vgem: Use ww_mutex_(un)lock even with a NULL context

v2: use resv->lock instead of resv->lock.base (Christian König)

Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Ingo Molnar <mingo@redhat.com>
Cc: Maarten Lankhorst <dev@mblankhorst.nl>
Cc: Daniel Vetter <daniel@ffwll.ch>
Cc: Chris Wilson <chris@chris-wilson.co.uk>
Cc: dri-devel@lists.freedesktop.org
Signed-off-by: Nicolai Hähnle <Nicolai.Haehnle@amd.com>
Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Link: http://patchwork.freedesktop.org/patch/msgid/1480601214-26583-2-git-send-email-nhaehnle@gmail.com
drivers/gpu/drm/vgem/vgem_fence.c