Re: 8-CPU (SMP) #s for lockfree rtcache

Andi Kleen
2002-05-28T16:34:31Z

On Tue, May 28, 2002 at 07:03:13PM +0200, Alan Cox wrote:
> On Tue, 2002-05-28 at 16:45, Andi Kleen wrote:
> > The next obvious benefitor IMHO is module unloading. Just putting
> > a synchronize_kernel() somewhere at the end of sys_delete_modules()
> > after the destructor makes module unloading much less nasty than it
> > used to be (yes it doesn't fix all possible module unload races, but a
> > large share of them and it makes the problem much more controllable)
>
> For 2.5 it would be much more productive to make sys_delete_module
> memset the entire vmalloced space of the module to an illegal
> instruction before returning

And gain tons of new atomic_incs and decs everywhere in the process?
I would prefer RCU.

-Andi