Messages in this thread | | | From | Bret Indrelee <> | Subject | RE: What protects cleanup_module() from open()? | Date | Tue, 30 Nov 1999 13:19:05 -0600 |
| |
Alan Cox [mailto:alan@lxorguk.ukuu.org.uk] wrote: > kuznet@ms2.inr.ac.ru wrote: > > It will not help. After MOD_DEC_USE_COUNT dropped use count to zero, > > module can be unloaded while pc on one cpu is still inside it. > > > > The answer is: modules cannot be unloaded on an SMP system at all, > > if you do not want to crash. > > I pointed this out to Linus and Dave about 6 months ago as > with 2.2 its fairly > ok (kernel lock) with 2.3.x its a problem. There are ways to > fix it for 2.4, > and since any user can trigger the event in 2.3.x it _has_ to > be fixed before > 2.4.0
How is it OK on 2.2? That was the source I was looking at, I couldn't see anything that held the kernel lock during the open.
It was most likely fine in 2.0, where everything was under one big kernel lock. I just didn't see where 2.2 was protected.
-Bret
------------------------------------------------------------- SBS Technologies, Connectivity Products ... solutions for real-time connectivity
Bret Indrelee, Engineer SBS Technologies, Inc., Connectivity Products 1284 Corporate Center Drive, St. Paul MN 55121 Direct: (651) 905-4731 Main: (651) 905-4700 Fax: (651) 905-4701 E-mail: bindrelee@sbs-cp.com http://www.sbs.com -------------------------------------------------------------
- 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/
| |