Rene> I have no idea about the module refcounting stuff. Is there
Rene> a chance that create_workqueue() could increase a reference
Rene> somewhere so that the module wouldn't be allowed to unload
Rene> untill after a destroy_workqueue()?
There's no point to doing this, since it's adding complexity to try
and avoid a very obvious and easy to find bug. Other types of
resource leaks are harder to find, but a module not destroying a
workqueue is going to be trivial to spot and fix.