Messages in this thread Patch in this message | | | Date | Wed, 11 Jan 2006 11:52:13 +0100 | From | Ingo Molnar <> | Subject | Re: PowerPC fastpaths for mutex subsystem |
| |
* Ingo Molnar <mingo@elte.hu> wrote:
> ok. I'll really need to look at "vmstat" output from these. We could > easily make the mutex slowpath behave like ppc64 semaphores, via the > attached (untested) patch, but i really think it's the wrong thing to > do, because it overloads the system with runnable tasks in an > essentially unlimited fashion [== overscheduling] - they'll all > contend for the same single mutex.
find the working patch below. (the previous one had a syntax error)
Ingo
Index: linux/kernel/mutex.c =================================================================== --- linux.orig/kernel/mutex.c +++ linux/kernel/mutex.c @@ -227,6 +227,9 @@ __mutex_unlock_slowpath(atomic_t *lock_c debug_mutex_wake_waiter(lock, waiter); wake_up_process(waiter->task); + + /* be (much) more agressive about wakeups: */ + list_move_tail(&waiter->list, &lock->wait_list); } debug_mutex_clear_owner(lock); - 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/
| |