[PATCH 4/4] rcu/kvfree: Switch to expedited version in slow path

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



For a single argument and its slow path, switch to expedited
version of synchronize_rcu(). This version is considered to
be more faster, thus under a high memory pressure a slow path
becoms more efficient.

Signed-off-by: Uladzislau Rezki (Sony) <urezki@xxxxxxxxx>
---
 kernel/rcu/tree.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/kernel/rcu/tree.c b/kernel/rcu/tree.c
index 030a453f36c6..835d90905ec1 100644
--- a/kernel/rcu/tree.c
+++ b/kernel/rcu/tree.c
@@ -3922,7 +3922,7 @@ void kvfree_call_rcu(struct rcu_head *head, void *ptr)
 		debug_rcu_head_unqueue((struct rcu_head *) ptr);
 
 		if (!poll_state_synchronize_rcu_full(&old_snap))
-			synchronize_rcu();
+			synchronize_rcu_expedited();
 
 		kvfree(ptr);
 	}
-- 
2.39.2





[Index of Archives]     [Linux Samsung SoC]     [Linux Rockchip SoC]     [Linux Actions SoC]     [Linux for Synopsys ARC Processors]     [Linux NFS]     [Linux NILFS]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]


  Powered by Linux