idr: __rcu annotations
Signed-off-by: Arnd Bergmann <arnd@arndb.de> Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com> Cc: Manfred Spraul <manfred@colorfullife.com> Reviewed-by: Josh Triplett <josh@joshtriplett.org>
This commit is contained in:
		
					parent
					
						
							
								a1115570b3
							
						
					
				
			
			
				commit
				
					
						d2c2486bc8
					
				
			
		
					 1 changed files with 2 additions and 2 deletions
				
			
		| 
						 | 
					@ -50,14 +50,14 @@
 | 
				
			||||||
 | 
					
 | 
				
			||||||
struct idr_layer {
 | 
					struct idr_layer {
 | 
				
			||||||
	unsigned long		 bitmap; /* A zero bit means "space here" */
 | 
						unsigned long		 bitmap; /* A zero bit means "space here" */
 | 
				
			||||||
	struct idr_layer	*ary[1<<IDR_BITS];
 | 
						struct idr_layer __rcu	*ary[1<<IDR_BITS];
 | 
				
			||||||
	int			 count;	 /* When zero, we can release it */
 | 
						int			 count;	 /* When zero, we can release it */
 | 
				
			||||||
	int			 layer;	 /* distance from leaf */
 | 
						int			 layer;	 /* distance from leaf */
 | 
				
			||||||
	struct rcu_head		 rcu_head;
 | 
						struct rcu_head		 rcu_head;
 | 
				
			||||||
};
 | 
					};
 | 
				
			||||||
 | 
					
 | 
				
			||||||
struct idr {
 | 
					struct idr {
 | 
				
			||||||
	struct idr_layer *top;
 | 
						struct idr_layer __rcu *top;
 | 
				
			||||||
	struct idr_layer *id_free;
 | 
						struct idr_layer *id_free;
 | 
				
			||||||
	int		  layers; /* only valid without concurrent changes */
 | 
						int		  layers; /* only valid without concurrent changes */
 | 
				
			||||||
	int		  id_free_cnt;
 | 
						int		  id_free_cnt;
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue