[lkml]   [2004]   [Aug]   [10]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
Patch in this message
Subject[PATCH][2.6.8-rc4-mm1] perfctr SMP hang fix

This patch fixes a critical SMP bug in the perfctr
inheritance fix I sent yesterday. I added a spinlock
to the perfctr state, but forgot to initialise it,
which results in a hard hang on SMP the first time
someone tries to program their perfctrs. It works
on UP, which is why I didn't detect it before :-(

Signed-off-by: Mikael Pettersson <>

drivers/perfctr/virtual.c | 1 +
1 files changed, 1 insertion(+)

diff -ruN linux-2.6.8-rc4-mm1/drivers/perfctr/virtual.c linux-2.6.8-rc4-mm1.perfctr-spinlock-fix/drivers/perfctr/virtual.c
--- linux-2.6.8-rc4-mm1/drivers/perfctr/virtual.c 2004-08-10 13:52:17.000000000 +0200
+++ linux-2.6.8-rc4-mm1.perfctr-spinlock-fix/drivers/perfctr/virtual.c 2004-08-10 13:53:57.644784000 +0200
@@ -156,6 +156,7 @@
atomic_set(&perfctr->count, 1);
+ spin_lock_init(&perfctr->children_lock);
return perfctr;
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
More majordomo info at
Please read the FAQ at
 \ /
  Last update: 2005-03-22 14:05    [W:0.023 / U:3.212 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site