]> Git Repo - linux.git/commit
drm/ttm: Avoid calling drm_ht_remove from atomic context
authorThomas Hellstrom <[email protected]>
Mon, 27 Mar 2017 10:38:25 +0000 (12:38 +0200)
committerThomas Hellstrom <[email protected]>
Thu, 30 Mar 2017 09:43:40 +0000 (11:43 +0200)
commit3ce7803cf3a7bc52c0eb9f516de8b72a0305ad57
tree9d64b8496547d9ae8efdf3180321195c531cce3e
parentfe25deb7737ce6c0879ccf79c99fa1221d428bf2
drm/ttm: Avoid calling drm_ht_remove from atomic context

On recent kernels, calling drm_ht_remove triggers a might_sleep() warning
from within vfree(). So avoid calling it from atomic context. The use-cases
we fix here are both from destructors so there should be no concurrent
use of the hash tables.

Signed-off-by: Thomas Hellstrom <[email protected]>
Reviewed-by: Brian Paul <[email protected]>
Reviewed-by: Sinclair Yeh <[email protected]>
drivers/gpu/drm/ttm/ttm_object.c
This page took 0.058608 seconds and 4 git commands to generate.