Re: SMP race with module loading/unloading

Alan Cox (alan@lxorguk.ukuu.org.uk)
Mon, 14 Dec 1998 21:06:14 +0000 (GMT)


> It would be fairly straightforward to fix this, but the changes involved
> would affect a lot of code. M_[ID]_U_C need to use atomic_inc and
> atomic_dec. There needs to be a 'module lock' which controls the module
> syscalls and nothing else.

The atomic inc/dec seems easy enough. A semaphore would serialize module
load/unload operations (beware of request_module) but IMHO request_module
is wrong anyway.

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