dma-buf: fix busy wait for new shared fences
authorChristian König <christian.koenig@amd.com>
Mon, 5 Aug 2019 09:14:27 +0000 (11:14 +0200)
committerChristian König <christian.koenig@amd.com>
Wed, 7 Aug 2019 10:39:52 +0000 (12:39 +0200)
commit93505ee7d05e836fd18894019e93c3875198fcc5
tree897d789bc045b7aa0d249be051cace480cfcba70
parent178e5f3a5bc1d67d1248a74c0abab41040abe7c4
dma-buf: fix busy wait for new shared fences

When reservation_object_add_shared_fence is replacing an old fence with a new
one we should not drop the old one before the new one is in place.

Otherwise other cores can busy wait for the new one to appear.

Signed-off-by: Christian König <christian.koenig@amd.com>
Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
Link: https://patchwork.freedesktop.org/patch/322030/
drivers/dma-buf/reservation.c