Re: [PATCH 1/4 V5] workqueue: Reorder sysfs code

From: Tejun Heo
Date: Tue Mar 24 2015 - 12:28:00 EST


Hello,

On Wed, Mar 18, 2015 at 12:40:14PM +0800, Lai Jiangshan wrote:
> @@ -4029,6 +3712,323 @@ out_unlock:
> put_pwq_unlocked(old_pwq);
> }
>
> +#ifdef CONFIG_SYSFS
...
> +#else /* CONFIG_SYSFS */
> +static void workqueue_sysfs_unregister(struct workqueue_struct *wq) { }
> +#endif /* CONFIG_SYSFS */
> +
> static int alloc_and_link_pwqs(struct workqueue_struct *wq)
> {
> bool highpri = wq->flags & WQ_HIGHPRI;

Why here? It's still in the middle of core logic implementation. Why
not move it further down so that it's either before or after the
hotplug code?

Thanks.

--
tejun
--
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/