mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-04 14:16:41 +07:00
drm/nouveau: fix race when adding delayed work items
kernel.org bz#198221. Reported-by: Petr Vandrovec <petr@vandrovec.name> Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
This commit is contained in:
parent
4ef9289299
commit
b26a2319be
@ -152,9 +152,9 @@ nouveau_cli_work_queue(struct nouveau_cli *cli, struct dma_fence *fence,
|
||||
work->cli = cli;
|
||||
mutex_lock(&cli->lock);
|
||||
list_add_tail(&work->head, &cli->worker);
|
||||
mutex_unlock(&cli->lock);
|
||||
if (dma_fence_add_callback(fence, &work->cb, nouveau_cli_work_fence))
|
||||
nouveau_cli_work_fence(fence, &work->cb);
|
||||
mutex_unlock(&cli->lock);
|
||||
}
|
||||
|
||||
static void
|
||||
|
Loading…
Reference in New Issue
Block a user