mirror of
				git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
				synced 2025-10-31 08:44:41 +00:00 
			
		
		
		
	rcu: Don't allocate bootmem from rcu_init()
When rcu_init() is called we already have slab working, allocating bootmem at that point results in warnings and an allocation from slab. This commit therefore changes alloc_bootmem_cpumask_var() to alloc_cpumask_var() in rcu_bootup_announce_oddness(), which is called from rcu_init(). Signed-off-by: Sasha Levin <sasha.levin@oracle.com> Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com> Reviewed-by: Josh Triplett <josh@joshtriplett.org> Tested-by: Robin Holt <holt@sgi.com> [paulmck: convert to zalloc_cpumask_var(), as suggested by Yinghai Lu.]
This commit is contained in:
		
							parent
							
								
									6faf72834d
								
							
						
					
					
						commit
						615ee5443f
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		|  | @ -88,7 +88,7 @@ static void __init rcu_bootup_announce_oddness(void) | |||
| #ifdef CONFIG_RCU_NOCB_CPU | ||||
| #ifndef CONFIG_RCU_NOCB_CPU_NONE | ||||
| 	if (!have_rcu_nocb_mask) { | ||||
| 		alloc_bootmem_cpumask_var(&rcu_nocb_mask); | ||||
| 		zalloc_cpumask_var(&rcu_nocb_mask, GFP_KERNEL); | ||||
| 		have_rcu_nocb_mask = true; | ||||
| 	} | ||||
| #ifdef CONFIG_RCU_NOCB_CPU_ZERO | ||||
|  |  | |||
		Loading…
	
	Add table
		
		Reference in a new issue
	
	 Sasha Levin
						Sasha Levin