[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Which types of locking should I use?



On Tue, May 04, 2004 at 23:42:00 +0800, raven@xxxxxxxxxx wrote:
> On Tue, 4 May 2004, Tetsuo Handa wrote:
> 
> > Hello, Jan.
> > 
> > (NOTE: I listed some functions where I want to use 'current',
> > and the following is Jan's answer.
> > Not applicable to all functions defined in fs/*.c !)
> > "Jan Hudec <bulb@xxxxxx>" wrote:
> > > Summary: All of the functions can safely use current without any special
> > > precautions whatsoever. All of them may (and usualy do) sleep, since
> > > they need [to wait for disk]
> 
> Not sure that's always the case.
> 
> I believe that threads that share current->fs?

The threads *that* share current->fs WHAT?

Yes, two processes (with common ancestor) MAY share current->fs. That
implies WHAT?

> What am I missing?

The fact, that we are NOT talking about current->fs!
 
-------------------------------------------------------------------------------
						 Jan 'Bulb' Hudec <bulb@xxxxxx>

Attachment: signature.asc
Description: Digital signature