Messages in this thread | | | Date | Wed, 07 Aug 2013 15:48:10 -0700 | From | Cody P Schafer <> | Subject | Re: [PATCH v2] mm: make lru_add_drain_all() selective |
| |
On 08/06/2013 01:22 PM, Chris Metcalf wrote: [...]
> > /** > + * schedule_on_each_cpu - execute a function synchronously on each online CPU > + * @func: the function to call > + * > + * schedule_on_each_cpu() executes @func on each online CPU using the > + * system workqueue and blocks until all CPUs have completed. > + * schedule_on_each_cpu() is very slow. > + * > + * RETURNS: > + * 0 on success, -errno on failure. > + */ > +int schedule_on_each_cpu(work_func_t func) > +{ > + get_online_cpus(); > + schedule_on_cpu_mask(func, cpu_online_mask);
Looks like the return value gets lost here.
> + put_online_cpus(); > + return 0; > +} > + > +/** > * flush_scheduled_work - ensure that any scheduled work has run to completion. > * > * Forces execution of the kernel-global workqueue and blocks until its
[...]
| |