diff options
| author | Sunil Khatri <sunil.khatri@amd.com> | 2026-05-14 12:31:00 +0530 |
|---|---|---|
| committer | Alex Deucher <alexander.deucher@amd.com> | 2026-05-19 12:11:34 -0400 |
| commit | 0978406224d21bd35f9230a25534849ec06bf74c (patch) | |
| tree | c2046f6dc4a221b9cf79d74cbe8468e15ddd881d /kernel/workqueue.c | |
| parent | a1d4b228e3dc5134c4bd06e55e81dbb604c8cadb (diff) | |
drm/amdgpu: use atomic operation to achieve lockless serialization
In amdgpu_seq64_alloc there is a possibility that two difference cores
from two separate NODES can try to and could get the same free slot.
So this fixes that race here using atomic test_and_set clear operations.
Signed-off-by: Sunil Khatri <sunil.khatri@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
(cherry picked from commit 4d50a14d346141e03a7c3905e496d91e048bc30c)
Diffstat (limited to 'kernel/workqueue.c')
0 files changed, 0 insertions, 0 deletions
