lkml.org 
[lkml]   [2007]   [Apr]   [16]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [Patch -mm 0/3] RFC: module unloading vs. release function
On Mon, Apr 16, 2007 at 03:38:52PM -0400, Alan Stern wrote:
> 3. Change the module code so that rmmod can return _before_ the
> module is actually unloaded from memory (but after the module's
> exit routine has completed). This will lead to more problems.
> For example, what if someone tries to modprobe my_module back
> again before it has finished unloading?

This problem (or its absence) must be already in tree: module_mutex is
dropped for the duration of ->exit() function, so init_module(2) could
load new old module meanwhile.

-
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: 2007-04-16 22:45    [W:0.988 / U:0.052 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site