[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <5202CEAA.9040204@linux.vnet.ibm.com>
Date: Wed, 07 Aug 2013 15:48:10 -0700
From: Cody P Schafer <cody@...ux.vnet.ibm.com>
To: Chris Metcalf <cmetcalf@...era.com>
CC: linux-kernel@...r.kernel.org, linux-mm@...ck.org,
Tejun Heo <tj@...nel.org>,
Thomas Gleixner <tglx@...utronix.de>,
Frederic Weisbecker <fweisbec@...il.com>
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
[...]
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists