]> Git Repo - linux.git/commit
drm/i915: Use mutex_lock_killable() from inside the shrinker
authorChris Wilson <[email protected]>
Wed, 9 Jan 2019 16:42:03 +0000 (16:42 +0000)
committerChris Wilson <[email protected]>
Thu, 10 Jan 2019 13:44:08 +0000 (13:44 +0000)
commit3824e41975ae55539de016dccc55e791d46a55bd
tree6d40cfc0d5ef2d079463793cd18bc160f356b7ea
parent7f9e20ef0f4689d3a47068cd4c32b40982ad9941
drm/i915: Use mutex_lock_killable() from inside the shrinker

If the current process is being killed (it was interrupted with SIGKILL
or equivalent), it will not make any progress in page allocation and we
can abort performing the shrinking on its behalf. So we can use
mutex_lock_killable() instead (although this path should only be
reachable from kswapd currently).

Tvrtko pointed out that it should also be reachable from debugfs, which
he would prefer retain its interruptiblity. As a compromise, killable is a
step in the right direction!

Signed-off-by: Chris Wilson <[email protected]>
Cc: Tvrtko Ursulin <[email protected]>
Reviewed-by: Tvrtko Ursulin <[email protected]>
Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
drivers/gpu/drm/i915/i915_gem_shrinker.c
This page took 0.055744 seconds and 4 git commands to generate.