diff options
Diffstat (limited to 'mm')
-rw-r--r-- | mm/slab.c | 13 |
1 files changed, 5 insertions, 8 deletions
@@ -1186,8 +1186,10 @@ static int __cpuinit cpuup_callback(struct notifier_block *nfb, | |||
1186 | int memsize = sizeof(struct kmem_list3); | 1186 | int memsize = sizeof(struct kmem_list3); |
1187 | 1187 | ||
1188 | switch (action) { | 1188 | switch (action) { |
1189 | case CPU_UP_PREPARE: | 1189 | case CPU_LOCK_ACQUIRE: |
1190 | mutex_lock(&cache_chain_mutex); | 1190 | mutex_lock(&cache_chain_mutex); |
1191 | break; | ||
1192 | case CPU_UP_PREPARE: | ||
1191 | /* | 1193 | /* |
1192 | * We need to do this right in the beginning since | 1194 | * We need to do this right in the beginning since |
1193 | * alloc_arraycache's are going to use this list. | 1195 | * alloc_arraycache's are going to use this list. |
@@ -1274,16 +1276,9 @@ static int __cpuinit cpuup_callback(struct notifier_block *nfb, | |||
1274 | } | 1276 | } |
1275 | break; | 1277 | break; |
1276 | case CPU_ONLINE: | 1278 | case CPU_ONLINE: |
1277 | mutex_unlock(&cache_chain_mutex); | ||
1278 | start_cpu_timer(cpu); | 1279 | start_cpu_timer(cpu); |
1279 | break; | 1280 | break; |
1280 | #ifdef CONFIG_HOTPLUG_CPU | 1281 | #ifdef CONFIG_HOTPLUG_CPU |
1281 | case CPU_DOWN_PREPARE: | ||
1282 | mutex_lock(&cache_chain_mutex); | ||
1283 | break; | ||
1284 | case CPU_DOWN_FAILED: | ||
1285 | mutex_unlock(&cache_chain_mutex); | ||
1286 | break; | ||
1287 | case CPU_DEAD: | 1282 | case CPU_DEAD: |
1288 | /* | 1283 | /* |
1289 | * Even if all the cpus of a node are down, we don't free the | 1284 | * Even if all the cpus of a node are down, we don't free the |
@@ -1354,6 +1349,8 @@ free_array_cache: | |||
1354 | continue; | 1349 | continue; |
1355 | drain_freelist(cachep, l3, l3->free_objects); | 1350 | drain_freelist(cachep, l3, l3->free_objects); |
1356 | } | 1351 | } |
1352 | break; | ||
1353 | case CPU_LOCK_RELEASE: | ||
1357 | mutex_unlock(&cache_chain_mutex); | 1354 | mutex_unlock(&cache_chain_mutex); |
1358 | break; | 1355 | break; |
1359 | } | 1356 | } |