On Sat, 25 Feb 2006, Esben Nielsen wrote: > On Sat, 25 Feb 2006, Steven Rostedt wrote: > [...] > This time around wake_up_process_mutex() wasn't called when it ought to > be... Now that I think about it there still is a problem with the > patch I sent: First the priority is set down, then the task is woken up. > But then it can't continue to de-boost the next task... Let me write a > test with 4 tasks and 3 locks to demonstrate. > Ok, attached is the test and a better patch which solves the problem. Esben > > > > I have attached the patch againt 2.6.17-rt17 (and therefore also > > > included the previous patch) along with the updated tester and tests. > > > > > > Esben > > > > I'll take a look at this tomorrow. > > > > -- Steve > > > > > > > > > > > > > That was why I had _reversed_ the lock ordering relative to normal in the > > > > > original patch: First lock task->pi_lock. Assign lock. Lock > > > > > lock->wait_lock. Then unlock task->pi_lock. Now it is safe to refer to > > > > > lock. To avoid deadlocks I used _raw_spin_trylock() when locking the 2. > > > > > lock. > > > > > > > > Stupid me. I messed that one up. Should show up in the next -rt > > > > > > > > Thanks > > > > > > > > tglx > > > > > > > > > > > > > > > > - > > To unsubscribe from this list: send the line "unsubscribe linux-kernel" in > > the body of a message to majordomo@vger.kernel.org > > More majordomo info at http://vger.kernel.org/majordomo-info.html > > Please read the FAQ at http://www.tux.org/lkml/ > > > > - > To unsubscribe from this list: send the line "unsubscribe linux-kernel" in > the body of a message to majordomo@vger.kernel.org > More majordomo info at http://vger.kernel.org/majordomo-info.html > Please read the FAQ at http://www.tux.org/lkml/ >