Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1323859
| From | Mike Galbraith <mgalbraith@suse.de> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | [PATCH 3/2] mm, vmstat: cancel pending work of the cpu_stat_off CPU |
| Date | 2016-02-02 09:00 +0100 |
| Message-ID | <qXE2u-7EE-3@gated-at.bofh.it> (permalink) |
| References | <qVYoG-6D9-13@gated-at.bofh.it> <qVYoG-6D9-15@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
Cancel pending work of the cpu_stat_off CPU.
Signed-off-by: Mike Galbraith <mgalbraith@suse.de>
---
mm/vmstat.c | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
--- a/mm/vmstat.c
+++ b/mm/vmstat.c
@@ -1486,25 +1486,25 @@ static void vmstat_shepherd(struct work_
get_online_cpus();
/* Check processors whose vmstat worker threads have been disabled */
- for_each_cpu(cpu, cpu_stat_off)
+ for_each_cpu(cpu, cpu_stat_off) {
+ struct delayed_work *dw = &per_cpu(vmstat_work, cpu);
+
if (need_update(cpu)) {
if (cpumask_test_and_clear_cpu(cpu, cpu_stat_off))
- queue_delayed_work_on(cpu, vmstat_wq,
- &per_cpu(vmstat_work, cpu), 0);
+ queue_delayed_work_on(cpu, vmstat_wq, dw, 0);
} else {
/*
* Cancel the work if quiet_vmstat has put this
* cpu on cpu_stat_off because the work item might
* be still scheduled
*/
- cancel_delayed_work(this_cpu_ptr(&vmstat_work));
+ cancel_delayed_work(dw);
}
-
+ }
put_online_cpus();
schedule_delayed_work(&shepherd,
round_jiffies_relative(sysctl_stat_interval));
-
}
static void __init start_shepherd_timer(void)
Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
[PATCH 1/2] mm, vmstat: make quiet_vmstat lighter Michal Hocko <mhocko@kernel.org> - 2016-01-28 18:20 +0100
[PATCH 3/2] mm, vmstat: cancel pending work of the cpu_stat_off CPU Mike Galbraith <mgalbraith@suse.de> - 2016-02-02 09:00 +0100
Re: [PATCH 3/2] mm, vmstat: cancel pending work of the cpu_stat_off CPU Michal Hocko <mhocko@kernel.org> - 2016-02-02 09:20 +0100
csiph-web