Neal H Walfield <[EMAIL PROTECTED]> writes:
> As the whole point of _diskfs_ncontrol_ports is debugging and
> _diskfs_ncontrol_ports is not surrounded by #ifdef DEBUG or something
> similar, I would like to see this added.
You're incorrect. The whole point of _diskfs_ncontrol_ports is to
facilitate the filesystem's exiting once the filesystem is idle and
has no users; control ports are deemed not to count against "no
users".
Take a look at libdiskfs/ports-idle.c.
That code is currently idle, because of the XXX comment; the actual
work isn't done. That's because of two things: first, the check isn't
quite right; only filesystems started as passive translators should
exit, and perhaps the test isn't quite right even then. And second,
there were persistent threads bugs in the implementation of
ports_manage_port_operations_multithread idle timeout code, and so the
calls to ports_notice_idle aren't made.
Indeed, this is not well evidenced by the code, which is slightly
inconsistent on the whole subject. But in any case, that's the point
of it all.
_______________________________________________
Bug-hurd mailing list
[EMAIL PROTECTED]
http://mail.gnu.org/mailman/listinfo/bug-hurd