All of lore.kernel.org
 help / color / mirror / Atom feed
* dma_fence: force users to take the lock manually
@ 2026-03-05 13:54 Philipp Stanner
  2026-03-05 13:59 ` Christian König
  0 siblings, 1 reply; 30+ messages in thread
From: Philipp Stanner @ 2026-03-05 13:54 UTC (permalink / raw)
  To: Christian König; +Cc: dakr, Tvrtko Ursulin, Boris Brezillon, dri-devel

Yo Christian,

a while ago we were discussing this problem

dma_fence_set_error(f, -ECANCELED);
dma_fence_signal(f); // racy!


I think you mentioned that you are considering to redesign the
dma_fence API so that users have to take the lock themselves to touch
the fence:

dma_fence_lock(f);
dma_fence_set_error(f, -ECANCELED);
dma_fence_signal(f);
dme_fence_unlock(f);


Is that still up to date? Is there work in progress about that?

I discovered that I might need / want that for the Rust abstractions.


Regards,
P.

^ permalink raw reply	[flat|nested] 30+ messages in thread

end of thread, other threads:[~2026-03-09 16:46 UTC | newest]

Thread overview: 30+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-03-05 13:54 dma_fence: force users to take the lock manually Philipp Stanner
2026-03-05 13:59 ` Christian König
2026-03-05 15:12   ` Boris Brezillon
2026-03-06  8:10     ` Christian König
2026-03-06  9:46       ` Boris Brezillon
2026-03-06  9:54         ` Philipp Stanner
2026-03-06 10:27           ` Boris Brezillon
2026-03-06  9:58         ` Christian König
2026-03-06 10:37           ` Boris Brezillon
2026-03-06 11:03             ` Christian König
2026-03-06 11:24               ` Boris Brezillon
2026-03-06 11:57                 ` Philipp Stanner
2026-03-06 12:31                   ` Christian König
2026-03-06 12:36                     ` Philipp Stanner
2026-03-06 12:54                       ` Christian König
2026-03-06 14:55                         ` Boris Brezillon
2026-03-09  9:33                           ` Christian König
2026-03-09 15:06                             ` Boris Brezillon
2026-03-09 16:46                               ` Christian König
2026-03-06 13:03                       ` Danilo Krummrich
2026-03-06 13:15                         ` Christian König
2026-03-06 13:36                           ` Philipp Stanner
2026-03-06 14:37                             ` Christian König
2026-03-06 15:25                               ` Boris Brezillon
2026-03-06 15:43                                 ` Boris Brezillon
2026-03-06 19:02                                   ` Philipp Stanner
2026-03-09  8:16                                     ` Boris Brezillon
2026-03-09  9:36                                       ` Christian König
2026-03-06 14:21                       ` Boris Brezillon
2026-03-06 12:48                   ` Boris Brezillon

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.