All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Robboy, David G" <david.g.robboy@intel.com>
To: linux-ia64@vger.kernel.org
Subject: RE: [Linux-ia64] Re: pthread_mutex_lock sometimes fails on Linux
Date: Wed, 27 Jun 2001 21:57:56 +0000	[thread overview]
Message-ID: <marc-linux-ia64-105590693005792@msgid-missing> (raw)
In-Reply-To: <marc-linux-ia64-105590693005788@msgid-missing>

The problem I previously reported occurs on a 2.4.5 kernel built from stock
source code (No Alan Cox patches, only the ia64 patch).

I slightly misstated the problem.  Here is what actually happens:
Four threads have entered a barrier (my own C code).  Within the barrier,
they call pthread_mutex_lock and increment a counter while holding the lock.
Three threads are waiting on the counter, whose value is three, to go to
four.  The fourth CPU is looping in the kernel in cpu_idle.  I don't know
how it got there, but probably it has something to do with calling
pthread_mutex_lock.

As I said, if anyone wants to investigate this I will provide a test case.

David

> -----Original Message-----
> From: Robboy, David G [mailto:david.g.robboy@intel.com]
> Sent: Wednesday, June 27, 2001 11:30 AM
> To: 'Bill Nottingham'; 'linux-ia64@linuxia64.org'
> Subject: RE: [Linux-ia64] Re: pthread_mutex_lock sometimes fails on
> Linux 2.4.5
> 
> 
> > Stock 2.4.5 or something else?
> 
> Something else.  We have features of our own in the kernel for system
> validation.  I guess I should try it on a stock kernel.
> 
> David
> 
> 
> _______________________________________________
> Linux-IA64 mailing list
> Linux-IA64@linuxia64.org
> http://lists.linuxia64.org/lists/listinfo/linux-ia64
> 



  parent reply	other threads:[~2001-06-27 21:57 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-06-27 18:20 [Linux-ia64] Re: pthread_mutex_lock sometimes fails on Linux 2.4.5 Bill Nottingham
2001-06-27 18:29 ` [Linux-ia64] Re: pthread_mutex_lock sometimes fails on Linux Robboy, David G
2001-06-27 21:57 ` Robboy, David G [this message]
2001-06-28  0:18 ` Luck, Tony
2001-06-28  7:39 ` [Linux-ia64] Re: pthread_mutex_lock sometimes fails on Linux 2.4.5 Jose Luu

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-105590693005792@msgid-missing \
    --to=david.g.robboy@intel.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.