forked from mirrors/linux
		
	Now that synchronize_rcu() waits for both RCU read-side critical sections and preempt-disabled regions of code, the sole caller of synchronize_rcu_mult() can be replaced by synchronize_rcu(). This patch makes this change and removes synchronize_rcu_mult(). Note that _wait_rcu_gp() still supports synchronize_rcu_mult(), and thus might be simplified in the future to take only take a single call_rcu() function rather than the current list of them. Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
		
			
				
	
	
		
			34 lines
		
	
	
	
		
			897 B
		
	
	
	
		
			C
		
	
	
	
	
	
			
		
		
	
	
			34 lines
		
	
	
	
		
			897 B
		
	
	
	
		
			C
		
	
	
	
	
	
/* SPDX-License-Identifier: GPL-2.0 */
 | 
						|
#ifndef _LINUX_SCHED_RCUPDATE_WAIT_H
 | 
						|
#define _LINUX_SCHED_RCUPDATE_WAIT_H
 | 
						|
 | 
						|
/*
 | 
						|
 * RCU synchronization types and methods:
 | 
						|
 */
 | 
						|
 | 
						|
#include <linux/rcupdate.h>
 | 
						|
#include <linux/completion.h>
 | 
						|
 | 
						|
/*
 | 
						|
 * Structure allowing asynchronous waiting on RCU.
 | 
						|
 */
 | 
						|
struct rcu_synchronize {
 | 
						|
	struct rcu_head head;
 | 
						|
	struct completion completion;
 | 
						|
};
 | 
						|
void wakeme_after_rcu(struct rcu_head *head);
 | 
						|
 | 
						|
void __wait_rcu_gp(bool checktiny, int n, call_rcu_func_t *crcu_array,
 | 
						|
		   struct rcu_synchronize *rs_array);
 | 
						|
 | 
						|
#define _wait_rcu_gp(checktiny, ...) \
 | 
						|
do {									\
 | 
						|
	call_rcu_func_t __crcu_array[] = { __VA_ARGS__ };		\
 | 
						|
	struct rcu_synchronize __rs_array[ARRAY_SIZE(__crcu_array)];	\
 | 
						|
	__wait_rcu_gp(checktiny, ARRAY_SIZE(__crcu_array),		\
 | 
						|
			__crcu_array, __rs_array);			\
 | 
						|
} while (0)
 | 
						|
 | 
						|
#define wait_rcu_gp(...) _wait_rcu_gp(false, __VA_ARGS__)
 | 
						|
 | 
						|
#endif /* _LINUX_SCHED_RCUPDATE_WAIT_H */
 |