linux54-tkg: Fix: drm/i915: prevent direct writeback from the shrinker

Proposed initially as a community patch - https://github.com/Frogging-Family/community-patches/pull/106

Fixes https://github.com/Frogging-Family/community-patches/pull/106
This commit is contained in:
Tk-Glitch
2022-03-31 19:02:43 +02:00
parent ff56abf7d9
commit 1222434e4d
2 changed files with 17 additions and 1 deletions

View File

@@ -0,0 +1,14 @@
diff --git a/drivers/gpu/drm/i915/gem/i915_gem_shrinker.c b/drivers/gpu/drm/i915/gem/i915_gem_shrinker.c
index edd21d14e64f..793bd586b80b 100644
--- a/drivers/gpu/drm/i915/gem/i915_gem_shrinker.c
+++ b/drivers/gpu/drm/i915/gem/i915_gem_shrinker.c
@@ -357,8 +357,7 @@ i915_gem_shrinker_scan(struct shrinker *shrinker, struct shrink_control *sc)
sc->nr_to_scan,
&sc->nr_scanned,
I915_SHRINK_BOUND |
- I915_SHRINK_UNBOUND |
- I915_SHRINK_WRITEBACK);
+ I915_SHRINK_UNBOUND);
if (sc->nr_scanned < sc->nr_to_scan && current_is_kswapd()) {
intel_wakeref_t wakeref;