Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

rcu/sync: remove un-used rcu_sync_enter_start function

With commit '6a010a49b63a ("cgroup: Make !percpu threadgroup_rwsem
operations optional")' usage of rcu_sync_enter_start is removed.

So this function can also be removed.

In the words of Oleg Nesterov:

__rcu_sync_enter(wait => false) is a better alternative if
someone needs rcu_sync_enter_start() again.

Link: https://lore.kernel.org/all/20220725121208.GB28662@redhat.com/
Signed-off-by: Onkarnath <onkarnath.1@samsung.com>
Signed-off-by: Maninder Singh <maninder1.s@samsung.com>
Acked-by: Oleg Nesterov <oleg@redhat.com>
Acked-by: Tejun Heo <tj@kernel.org>
Reviewed-by: Paul E. McKenney <paulmck@kernel.org>
Signed-off-by: Boqun Feng <boqun.feng@gmail.com>

authored by

Onkarnath and committed by
Boqun Feng
c90e3ecc fd2a749d

-17
-1
include/linux/rcu_sync.h
··· 37 37 } 38 38 39 39 extern void rcu_sync_init(struct rcu_sync *); 40 - extern void rcu_sync_enter_start(struct rcu_sync *); 41 40 extern void rcu_sync_enter(struct rcu_sync *); 42 41 extern void rcu_sync_exit(struct rcu_sync *); 43 42 extern void rcu_sync_dtor(struct rcu_sync *);
-16
kernel/rcu/sync.c
··· 24 24 init_waitqueue_head(&rsp->gp_wait); 25 25 } 26 26 27 - /** 28 - * rcu_sync_enter_start - Force readers onto slow path for multiple updates 29 - * @rsp: Pointer to rcu_sync structure to use for synchronization 30 - * 31 - * Must be called after rcu_sync_init() and before first use. 32 - * 33 - * Ensures rcu_sync_is_idle() returns false and rcu_sync_{enter,exit}() 34 - * pairs turn into NO-OPs. 35 - */ 36 - void rcu_sync_enter_start(struct rcu_sync *rsp) 37 - { 38 - rsp->gp_count++; 39 - rsp->gp_state = GP_PASSED; 40 - } 41 - 42 - 43 27 static void rcu_sync_func(struct rcu_head *rhp); 44 28 45 29 static void rcu_sync_call(struct rcu_sync *rsp)