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:
14
linux-tkg-patches/5.4/0012-misc-additions.patch
Normal file
14
linux-tkg-patches/5.4/0012-misc-additions.patch
Normal 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;
|
||||
|
Reference in New Issue
Block a user