Re: [PATCH v2] mm: make lru_add_drain_all() selective

From: Cody P Schafer
Date: Wed Aug 07 2013 - 18:48:21 EST


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@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/