]> git.baikalelectronics.ru Git - kernel.git/commit
dma-buf: nuke reservation_object seq number
authorChristian König <christian.koenig@amd.com>
Mon, 5 Aug 2019 12:24:55 +0000 (14:24 +0200)
committerChristian König <christian.koenig@amd.com>
Tue, 13 Aug 2019 07:07:58 +0000 (09:07 +0200)
commitd269ce650d4e2fe2dd432c9e0eba70c2c60c68eb
treedabe9434fb720c4c0d80b7078cccf3acde6e0f9a
parent3eaeaee3a2916299e63e8617bba65966753c9cd1
dma-buf: nuke reservation_object seq number

The only remaining use for this is to protect against setting a new exclusive
fence while we grab both exclusive and shared. That can also be archived by
looking if the exclusive fence has changed or not after completing the
operation.

v2: switch setting excl fence to rcu_assign_pointer

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/322380/
drivers/dma-buf/reservation.c
include/linux/reservation.h