Hello, again. On Fri, May 16, 2014 at 3:34 PM, Tejun Heo <t...@kernel.org> wrote: > On Fri, May 16, 2014 at 3:32 PM, Christoph Lameter <c...@linux.com> wrote: >> It sets a bad precedent. So move to /sys/kernel/workqueue and lets have a >> symlink that goes back? > > Hmm... I don't think it's a good idea to lose uevent. It's an integral > part in configuring sysfs. Wouldn't it make more sense to move > /sys/kernel under /sys/devices?
So, the thing is sysfs has been collecting everything under /sys/devices because other top level directories added complexity while missing out on basic event mechanism. If you look at other top-level directories, other than /sys/modules and /sys/kernel, everything else is symlink into /sys/devices hierarchy and just kept around for compatibility. For static knobs, it may not matter but for things like slab and workqueue which can be dynamically created and destroyed, being hooked up into uevent mechanism is a necessity, so I really think we better sort it out properly. Maybe it can use /sys/devices/virtual or maybe we'll need a separate directory such /sys/devices/kernel but I really don't find moving workqueue to /sys/kernel at this point a good idea. Thanks. -- tejun -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/