From: Jes Sorensen <jes@linuxcare.com>
To: linux-ia64@vger.kernel.org
Subject: Re: [Linux-ia64] 2.4.3 + 010405 hanging
Date: Thu, 19 Apr 2001 19:23:42 +0000 [thread overview]
Message-ID: <marc-linux-ia64-105590693005438@msgid-missing> (raw)
In-Reply-To: <marc-linux-ia64-105590693005437@msgid-missing>
>>>>> "Gustavo" = Gustavo Niemeyer <niemeyer@conectiva.com> 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
diff -urN lia64/arch/ia64/kernel/semaphore.c lia64-kdb/arch/ia64/kernel/semaphore.c
--- lia64/arch/ia64/kernel/semaphore.c Wed Dec 6 18:36:35 2000
+++ lia64-kdb/arch/ia64/kernel/semaphore.c Fri Apr 13 20:48:40 2001
@@ -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 */
next prev parent reply other threads:[~2001-04-19 19:23 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-04-19 17:06 [Linux-ia64] 2.4.3 + 010405 hanging Gustavo Niemeyer
2001-04-19 19:23 ` Jes Sorensen [this message]
2001-04-23 18:38 ` Gustavo Niemeyer
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=marc-linux-ia64-105590693005438@msgid-missing \
--to=jes@linuxcare.com \
--cc=linux-ia64@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox