[<prev] [next>] [day] [month] [year] [list]
Message-ID: <162506087804.395.14999204819611952242.tip-bot2@tip-bot2>
Date: Wed, 30 Jun 2021 13:47:58 -0000
From: "tip-bot2 for Uladzislau Rezki (Sony)" <tip-bot2@...utronix.de>
To: linux-tip-commits@...r.kernel.org
Cc: "Uladzislau Rezki (Sony)" <urezki@...il.com>,
"Paul E. McKenney" <paulmck@...nel.org>, x86@...nel.org,
linux-kernel@...r.kernel.org
Subject: [tip: core/rcu] kvfree_rcu: Use kfree_rcu_monitor() instead of
open-coded variant
The following commit has been merged into the core/rcu branch of tip:
Commit-ID: 7fe1da33f6bad33b79135b1df6c3476f87856928
Gitweb: https://git.kernel.org/tip/7fe1da33f6bad33b79135b1df6c3476f87856928
Author: Uladzislau Rezki (Sony) <urezki@...il.com>
AuthorDate: Thu, 15 Apr 2021 19:20:00 +02:00
Committer: Paul E. McKenney <paulmck@...nel.org>
CommitterDate: Mon, 10 May 2021 16:00:48 -07:00
kvfree_rcu: Use kfree_rcu_monitor() instead of open-coded variant
Replace an open-coded version of the kfree_rcu_monitor() function body
with a call to that function.
Signed-off-by: Uladzislau Rezki (Sony) <urezki@...il.com>
Signed-off-by: Paul E. McKenney <paulmck@...nel.org>
---
kernel/rcu/tree.c | 8 +-------
1 file changed, 1 insertion(+), 7 deletions(-)
diff --git a/kernel/rcu/tree.c b/kernel/rcu/tree.c
index 1ae5f88..d643fd8 100644
--- a/kernel/rcu/tree.c
+++ b/kernel/rcu/tree.c
@@ -3697,7 +3697,6 @@ static unsigned long
kfree_rcu_shrink_scan(struct shrinker *shrink, struct shrink_control *sc)
{
int cpu, freed = 0;
- unsigned long flags;
for_each_possible_cpu(cpu) {
int count;
@@ -3705,12 +3704,7 @@ kfree_rcu_shrink_scan(struct shrinker *shrink, struct shrink_control *sc)
count = krcp->count;
count += drain_page_cache(krcp);
-
- raw_spin_lock_irqsave(&krcp->lock, flags);
- if (krcp->monitor_todo)
- kfree_rcu_drain_unlock(krcp, flags);
- else
- raw_spin_unlock_irqrestore(&krcp->lock, flags);
+ kfree_rcu_monitor(&krcp->monitor_work.work);
sc->nr_to_scan -= count;
freed += count;
Powered by blists - more mailing lists