]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commit
drm/ttm: make the pool shrinker lock a mutex
authorChristian König <christian.koenig@amd.com>
Mon, 11 Jan 2021 13:44:57 +0000 (14:44 +0100)
committerChristian König <christian.koenig@amd.com>
Tue, 12 Jan 2021 13:02:08 +0000 (14:02 +0100)
commitbb52cb0dec8d2fecdb22843a805131478a180728
tree5172ddc454fda096f654d80b83501f084be6ba1d
parenta5e92ef3c3fd46320d4e293bdec0cdd4b80a6e0f
drm/ttm: make the pool shrinker lock a mutex

set_pages_wb() might sleep and so we can't do this in an atomic context.

Signed-off-by: Christian König <christian.koenig@amd.com>
Reported-by: Mikhail Gavrilov <mikhail.v.gavrilov@gmail.com>
Tested-by: Mikhail Gavrilov <mikhail.v.gavrilov@gmail.com>
Fixes: d099fc8f540a ("drm/ttm: new TT backend allocation pool v3")
Reviewed-by: Huang Rui <ray.huang@amd.com>
Link: https://patchwork.freedesktop.org/patch/413409/
drivers/gpu/drm/ttm/ttm_pool.c