Re: workqueue - process context

2005-02-19 Thread Rene Herman
Roland Dreier wrote: 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 doi

Re: workqueue - process context

2005-02-19 Thread Roland Dreier
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

Re: workqueue - process context

2005-02-19 Thread Rene Herman
Roland Dreier wrote: Not destroying its workqueue is a bug in the module just like any other resource leak. It's analogous to a module allocating some memory with kmalloc() and not calling kfree() when it's unloaded. Except though that with kmalloc() it's indeed just a leak while in this case thi

Re: workqueue - process context

2005-02-18 Thread Vicente Feito
On Saturday 19 February 2005 04:57 am, you wrote: > Vicente> I've been playing with workqueues, and I've found that > Vicente> once I unload the module, if I don't call > Vicente> destroy_workqueue(); then the workqueue I've created > Vicente> stays in the process list, [my_wq], I d

Re: workqueue - process context

2005-02-18 Thread Roland Dreier
Vicente> What if I need the module to be unloaded cause It's Vicente> mutually exclusive with another module to be loaded, and Vicente> I still need to run the works in a workqueue time before Vicente> that happens? That's completely out of the picture?cause Vicente> that might

Re: workqueue - process context

2005-02-18 Thread Vicente Feito
On Saturday 19 February 2005 04:57 am, you wrote: > Vicente> I've been playing with workqueues, and I've found that > Vicente> once I unload the module, if I don't call > Vicente> destroy_workqueue(); then the workqueue I've created > Vicente> stays in the process list, [my_wq], I d

Re: workqueue - process context

2005-02-18 Thread Roland Dreier
Vicente> I've been playing with workqueues, and I've found that Vicente> once I unload the module, if I don't call Vicente> destroy_workqueue(); then the workqueue I've created Vicente> stays in the process list, [my_wq], I don't know if Vicente> that's meant to be, or is it a b

workqueue - process context

2005-02-18 Thread Vicente Feito
I've been playing with workqueues, and I've found that once I unload the module, if I don't call destroy_workqueue(); then the workqueue I've created stays in the process list, [my_wq], I don't know if that's meant to be, or is it a bug, cause I believe there can be two options in here: 1) It's