diff options
| -rw-r--r-- | mm/vmstat.c | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/mm/vmstat.c b/mm/vmstat.c index 64bd0aa13f75..40b2c74ddf16 100644 --- a/mm/vmstat.c +++ b/mm/vmstat.c | |||
| @@ -1408,17 +1408,7 @@ static void vmstat_update(struct work_struct *w) | |||
| 1408 | * Defer the checking for differentials to the | 1408 | * Defer the checking for differentials to the |
| 1409 | * shepherd thread on a different processor. | 1409 | * shepherd thread on a different processor. |
| 1410 | */ | 1410 | */ |
| 1411 | int r; | 1411 | cpumask_set_cpu(smp_processor_id(), cpu_stat_off); |
| 1412 | /* | ||
| 1413 | * Shepherd work thread does not race since it never | ||
| 1414 | * changes the bit if its zero but the cpu | ||
| 1415 | * online / off line code may race if | ||
| 1416 | * worker threads are still allowed during | ||
| 1417 | * shutdown / startup. | ||
| 1418 | */ | ||
| 1419 | r = cpumask_test_and_set_cpu(smp_processor_id(), | ||
| 1420 | cpu_stat_off); | ||
| 1421 | VM_BUG_ON(r); | ||
| 1422 | } | 1412 | } |
| 1423 | } | 1413 | } |
| 1424 | 1414 | ||
