A different approach to module races
Posted Jul 31, 2003 17:19 UTC (Thu) by
cpeterso (guest, #305)
Parent article:
A different approach to module races
I don't understand why module ref-counting is so difficult. Since device driver modules are written by so many people (outside the Linux core team), maybe modules are more likely to have ref-count bugs. Instead of relying on every module developer to get it right, maybe the problem can be abstracted and solved correctly once in the core kernel code. If lazy module developers cannot be trusted to write their ref-counting code correctly, maybe the kernel needs to add module garbage collection! :-)
I'm only half-joking! Module GC would probably be much easier than heap GC. The kernel probably keeps a list of loaded modules and references to the modules from other drivers or buffers. This list could be traversed and leaked modules can then safely be unloaded.
(
Log in to post comments)