]> git.baikalelectronics.ru Git - 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)
commitc1671df3b7d06e341b9a161d364d7943d04c8c10
tree5172ddc454fda096f654d80b83501f084be6ba1d
parentc794bf0d52606d9e605f555d192fcc46086677e5
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: aab6b49157b7 ("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