On Wed, Mar 30, 2005 at 05:19:23PM +0200, guy keren wrote: > since when does 'D' state means a process is holding a lock? there are > many situations in the kernel that processes are put to sleep while not > holding any lock (at least as far as i saw - and i'm talking about 2.6 > kernels) - unless the lock-taking was done much, much earlier.
D means TASK_UNINTERRUPTIBLE. I believe the most common reason to be in TASK_UNINTERRUPTIBLE state is to hold a semaphore, but there could certainly be other cases. > by the way, with 'holding a lock', do you also talk about 'having a page > from the page cache marked as locked'? I don't think so, why? Cheers, Muli -- Muli Ben-Yehuda http://www.mulix.org | http://mulix.livejournal.com/
signature.asc
Description: Digital signature