On Fri, Dec 16, 2005 at 01:26:44PM -0800, David Singleton wrote: > Dinakar, > > I believe this patch will give you the behavior you expect. > > http://source.mvista.com/~dsingleton/patch-2.6.15-rc5-rt2-rf3 Not really, the reason, quoting from my previous mail So IMO the above check is not right. However removing this check is not the end of story. This time it gets to task_blocks_on_lock and tries to grab the task->pi_lock of the owvner which is itself and results in a system hang. (Assuming CONFIG_DEBUG_DEADLOCKS is not set). So it looks like we need to add some check to prevent this below in case lock_owner happens to be current. _raw_spin_lock(&lock_owner(lock)->task->pi_lock); The patch that works for me is attached below -Dinakar