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

Re: Which types of locking should I use?



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 

Not sure that's always the case.

I believe that threads that share current->fs?

What am I missing?

Ian


--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive:       http://mail.nl.linux.org/kernelnewbies/
FAQ:           http://kernelnewbies.org/faq/