diff options
| author | Philipp Stanner <phasta@kernel.org> | 2025-10-24 18:12:22 +0200 |
|---|---|---|
| committer | Philipp Stanner <phasta@kernel.org> | 2025-10-27 13:58:56 +0100 |
| commit | e0023c8a74028739643aa14bd201c41a99866ca4 (patch) | |
| tree | a1ca1c268296dc9ddc85b3d804d985b68b7ce710 /rust/helpers/build_bug.c | |
| parent | drm/sched: Fix race in drm_sched_entity_select_rq() (diff) | |
| download | linux-e0023c8a74028739643aa14bd201c41a99866ca4.tar.gz linux-e0023c8a74028739643aa14bd201c41a99866ca4.zip | |
drm/nouveau: Fix race in nouveau_sched_fini()
nouveau_sched_fini() uses a memory barrier before wait_event().
wait_event(), however, is a macro which expands to a loop which might
check the passed condition several times. The barrier would only take
effect for the first check.
Replace the barrier with a function which takes the spinlock.
Cc: stable@vger.kernel.org # v6.8+
Fixes: 5f03a507b29e ("drm/nouveau: implement 1:1 scheduler - entity relationship")
Acked-by: Danilo Krummrich <dakr@kernel.org>
Signed-off-by: Philipp Stanner <phasta@kernel.org>
Link: https://patch.msgid.link/20251024161221.196155-2-phasta@kernel.org
Diffstat (limited to 'rust/helpers/build_bug.c')
0 files changed, 0 insertions, 0 deletions
