lkml.org 
[lkml]   [2003]   [Jul]   [25]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: [PATCH] Remove module reference counting.
From
Date
On Gwe, 2003-07-25 at 20:26, Stephen Hemminger wrote:
> > If module removal is to be a rare and unusual event, it
> > doesn't seem so sensible to go to great lengths in the code to handle
> > just that case. In fact, it's easier to leave the module memory in
> > place, and not have the concept of parts of the kernel text (and some
> > types of kernel data) vanishing.

Uggh. There is a difference between taking the approach that some stuff
is hard to handle and gets into trouble for using MOD_INC/DEC so is
unsafe, and doing the locking from the caller, or arranging that you
know the device is quiescent in the unload path and not allowing
unloading to work properly.

I've got drivers that use MOD_INC/DEC and are technically unsafe, they
by default now don't unload and its an incentive to fix them. I'd hate
to have my box cluttering up and have to keep rebooting to test drivers
because of inept implementations however.


-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:47    [W:0.098 / U:2.436 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site