summaryrefslogtreecommitdiffstats
path: root/drivers/dma-buf/st-dma-resv.c
diff options
context:
space:
mode:
authorChristian König <christian.koenig@amd.com>2022-04-04 14:58:37 +0200
committerChristian König <christian.koenig@amd.com>2022-04-07 12:53:54 +0200
commit8f94eda39952a8c7323bad2bf752bdfe78101b20 (patch)
tree005ae7404fd58dcb37d54359f33227a8b79941fc /drivers/dma-buf/st-dma-resv.c
parent8bb31587820a6e04cb613b49238b1800d1a97223 (diff)
downloadlinux-8f94eda39952a8c7323bad2bf752bdfe78101b20.tar.bz2
dma-buf: drop seq count based update
This should be possible now since we don't have the distinction between exclusive and shared fences any more. The only possible pitfall is that a dma_fence would be reused during the RCU grace period, but even that could be handled with a single extra check. Signed-off-by: Christian König <christian.koenig@amd.com> Reviewed-by: Daniel Vetter <daniel.vetter@ffwll.ch> Link: https://patchwork.freedesktop.org/patch/msgid/20220407085946.744568-15-christian.koenig@amd.com
Diffstat (limited to 'drivers/dma-buf/st-dma-resv.c')
-rw-r--r--drivers/dma-buf/st-dma-resv.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/dma-buf/st-dma-resv.c b/drivers/dma-buf/st-dma-resv.c
index 8ace9e84c845..813779e3c9be 100644
--- a/drivers/dma-buf/st-dma-resv.c
+++ b/drivers/dma-buf/st-dma-resv.c
@@ -217,7 +217,7 @@ static int test_for_each_unlocked(void *arg)
if (r == -ENOENT) {
r = -EINVAL;
/* That should trigger an restart */
- cursor.seq--;
+ cursor.fences = (void*)~0;
} else if (r == -EINVAL) {
r = 0;
}