Skip to contentSkip to conversation

2.4.3 + 010405 hanging

Linux-ia64 Gustavo Niemeyer 2 participants 3 messages Apr 19, 2001 – Apr 23, 2001

lore
Share & tools
lore
#0 lore raw

Hello!

When I try to do a complex task like kernel compiling and I'm running kernel 2.4.3 with ia64 patch 010405, the system is hanging frequently.

Any known issues about this?

Thanks!

Signature · 3 lines
Gustavo Niemeyer

[ 2AAC 7928 0FBF 0299 5EB5  60E2 2253 B29A 6664 3A0C ]
#1 lore raw
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Gustavo" = Gustavo Niemeyer <[email protected]> writes:

Gustavo> Hello! When I try to do a complex task like kernel compiling Gustavo> and I'm running kernel 2.4.3 with ia64 patch 010405, the Gustavo> system is hanging frequently.

Gustavo> Any known issues about this?

There is a known problem with the rw semaphores that can cause something like this. David included a basic fix in an ldt patch he posted a couple of days ago.

I think this snippet is the relevant part.

Jes

arch/ia64/kernel/semaphore.c +2 -4
diff -urN lia64/arch/ia64/kernel/semaphore.c lia64-kdb/arch/ia64/kernel/semaphore.c
@@ -321,13 +321,11 @@
 
 	if (count = 0) {
 		/* wake a writer */
-		if (xchg(&sem->write_bias_granted, 1))
-			BUG();
+		xchg(&sem->write_bias_granted, 1);
 		wq = &sem->write_bias_wait;
 	} else {
 		/* wake reader(s) */
-		if (xchg(&sem->read_bias_granted, 1))
-			BUG();
+		xchg(&sem->read_bias_granted, 1);
 		wq = &sem->wait;
 	}
 	wake_up(wq);	/* wake up everyone on the wait queue */
#2 lore raw
In reply to Gustavo Niemeyer
Quoted 11 lines

Gustavo> Hello! When I try to do a complex task like kernel compiling Gustavo> and I'm running kernel 2.4.3 with ia64 patch 010405, the Gustavo> system is hanging frequently.

Gustavo> Any known issues about this?

There is a known problem with the rw semaphores that can cause something like this. David included a basic fix in an ldt patch he posted a couple of days ago.

I think this snippet is the relevant part.

Thank you Jes!!

I've been working for a few days with the patched kernel and it seems to be working just fine!!

Signature · 3 lines
Gustavo Niemeyer

[ 2AAC 7928 0FBF 0299 5EB5  60E2 2253 B29A 6664 3A0C ]