[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20220901221720.1105021-18-joel@joelfernandes.org>
Date: Thu, 1 Sep 2022 22:17:19 +0000
From: "Joel Fernandes (Google)" <joel@...lfernandes.org>
To: rcu@...r.kernel.org
Cc: linux-kernel@...r.kernel.org, rushikesh.s.kadam@...el.com,
urezki@...il.com, neeraj.iitr10@...il.com, frederic@...nel.org,
paulmck@...nel.org, rostedt@...dmis.org, vineeth@...byteword.org,
boqun.feng@...il.com,
"Joel Fernandes (Google)" <joel@...lfernandes.org>
Subject: [PATCH v5 17/18] i915: Move call_rcu() to call_rcu_lazy()
This is required to prevent callbacks triggering RCU machinery too
quickly and too often, which adds more power to the system.
Signed-off-by: Joel Fernandes (Google) <joel@...lfernandes.org>
---
drivers/gpu/drm/i915/gem/i915_gem_object.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/gpu/drm/i915/gem/i915_gem_object.c b/drivers/gpu/drm/i915/gem/i915_gem_object.c
index ccec4055fde3..21d6f66fb394 100644
--- a/drivers/gpu/drm/i915/gem/i915_gem_object.c
+++ b/drivers/gpu/drm/i915/gem/i915_gem_object.c
@@ -343,7 +343,7 @@ static void __i915_gem_free_objects(struct drm_i915_private *i915,
__i915_gem_free_object(obj);
/* But keep the pointer alive for RCU-protected lookups */
- call_rcu(&obj->rcu, __i915_gem_free_object_rcu);
+ call_rcu_lazy(&obj->rcu, __i915_gem_free_object_rcu);
cond_resched();
}
}
--
2.37.2.789.g6183377224-goog
Powered by blists - more mailing lists