3 msg[PATCH 1/2] fs/ocfs2/cluster: compilation warni...
1 msg[git patch] libata no-works fix (RESEND)
1 msg[PATCH 001/001] usb-serial: Add ThinkOptics WavIT
3 msg2.6.26-rc1: warnings from sysfs, bluetooth related
4 msg[RFC/PATCH] Make for_each_node_mask out-of-line
1 msg[PATCH] [RFC] shrink struct pid by removing pad...
3 msgMicroblaze toolchain - libc
1 msgRe: [PATCH 37/56] microblaze_v2: headers for irq
3 msgRe: [PATCH 08/56] microblaze_v2: Interrupt hand...
12 msg[PATCH] Make for_each_cpu_mask a bit smaller
5 msgError in save_stack_trace() on x86_64?
1 msg[PATCH 4/4] sound/usb: use unsigned for loop index
1 msg[PATCH 3/4] sound/pci: use unsigned for loop index
1 msg[PATCH 2/4] sound/oss: use unsigned for loop index
4 msg[PATCH 1/4] sound/isa: use unsigned for loop index
1 msgRe: 2.6.26-rc1: WARNING: at kernel/sched.c:4388
1 msgRe: AIM7 40% regression with 2.6.26-rc1

Re: [git pull] scheduler fixes
\ Matthew Wilcox (11 May 2008)
. \ Matthew Wilcox (11 May 2008)
. \ Matthew Wilcox (11 May 2008)
. . \ Ingo Molnar (11 May 2008)
. . . \ Ingo Molnar (11 May 2008)
. . . . \ Matthew Wilcox (11 May 2008)
. . . . . \ Matthew Wilcox (11 May 2008)
. . . . . . \ Ingo Molnar (11 May 2008)
. . . . . . . \ Matthew Wilcox (11 May 2008)
. . . . . . . . \ Ingo Molnar (11 May 2008)
. . . . . . . . . \ Matthew Wilcox (11 May 2008)
. . . . . . . . . . \ Ingo Molnar (11 May 2008)
. . . . . . . . . . . \ Matthew Wilcox (11 May 2008)
. . . . . . . . . . . . \ Ingo Molnar (13 May 2008)
. . . . . . . . . . . . . \ Matthew Wilcox (13 May 2008)
. . . . . . . . . . . . . . \ Ingo Molnar (13 May 2008)
. . . . . . . . . . . . . . . \ Matthew Wilcox (13 May 2008)
. . . . . . . . . . . . . . . . \ Ingo Molnar (13 May 2008)
. . . . . . . . . . . . . . . . . \ Linus Torvalds (13 May 2008)
. . . . . . . . . . . . . . . . . . \ Ingo Molnar (13 May 2008)
. . . . . \ Ingo Molnar (11 May 2008)
. . . . . . \ Matthew Wilcox (11 May 2008)
. . . . . . . \ Ingo Molnar (11 May 2008)
. . . . . . . . \ Matthew Wilcox (11 May 2008)
. . . . . . . . \ Linus Torvalds (11 May 2008)
. \ Ingo Molnar (11 May 2008)
. . \ Matthew Wilcox (11 May 2008)
. . . \ Ingo Molnar (11 May 2008)
. \ Sven Wegener (11 May 2008)

2 msgbetter msleep for drivers
1 msg2.6.25.3 WARNING swapper Not tainted at kernel/...
Subject:Re: [git pull] scheduler fixes
Group:Linux-kernel
From:Matthew Wilcox
Date:11 May 2008


 
On Thu, May 08, 2008 at 05:10:28PM +0200, Ingo Molnar wrote:
> @@ -258,7 +256,5 @@ static noinline void __sched __up(struct semaphore *sem)
> {
> struct semaphore_waiter *waiter = list_first_entry(&sem->wait_list,
> struct semaphore_waiter, list);
> - list_del(&waiter->list);
> - waiter->up = 1;
> wake_up_process(waiter->task);
> }

This might be the problem that causes the missing wakeups. If you have a
semaphore with n=2, and four processes calling down(), tasks A and B
acquire the semaphore and tasks C and D go to sleep. Task A calls up()
and wakes up C. Then task B calls up() and doesn't wake up anyone
because C hasn't run yet. I think we need another wakeup when task C
finishes in __down_common, like this (on top of your patch):

diff --git a/kernel/semaphore.c b/kernel/semaphore.c
index 5e41217..e520ad4 100644
--- a/kernel/semaphore.c
+++ b/kernel/semaphore.c
@@ -229,6 +229,11 @@ static inline int __sched __down_common(struct semaphore *sem, long state,
}

list_del(&waiter.list);
+
+ /* It's possible we need to wake up the next task on the list too */
+ if (unlikely(sem->count > 1) && !list_empty(&sem->wait_list))
+ __up(sem);
+
return ret;
}

Sven, can you try this with your workload? I suspect this might be it
because XFS does use semaphores with n>1.

--
Intel are signing my paycheques ... these opinions are still mine
"Bill, look, we understand that you're interested in selling us this
operating system, but compare it to ours. We can't possibly take such
a retrograde step."
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/


© 2004-2008 readlist.com