lkml.org 
[lkml]   [1999]   [Nov]   [30]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRE: What protects cleanup_module() from open()?
Date
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/

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