From: Ingo Molnar <mingo@redhat.com>
To: linas@austin.ibm.com
Cc: Anton Blanchard <anton@samba.org>, <linux-kernel@vger.kernel.org>,
<davem@redhat.com>, <riel@redhat.com>, <mranweil@us.ibm.com>
Subject: Re: PATCH: kernel-2.4 brlock livelock
Date: Thu, 4 Sep 2003 04:59:21 -0400 (EDT) [thread overview]
Message-ID: <Pine.LNX.4.44.0309040457560.5452-100000@devserv.devel.redhat.com> (raw)
In-Reply-To: <20030903151043.B51004@forte.austin.ibm.com>
On Wed, 3 Sep 2003 linas@austin.ibm.com wrote:
> OK, how about the following: readers on a given cpu are held off if the
> write lock is held *and* the read-count on that cpu is zero?
>
> That way, 'recursive' readers on other CPU's can get a read-lock if
> there's already a non-zero read-lock-count on that CPU.
>
> That should work if the thread holding the lock can't get scheduled to
> another cpu. Can these things wander around?
>
> If they can wander around, then oone would have to order the cpus: wait
> for read count to drop to zero on cpu 0 then on 1 then on 2, meanwhile
> the read-lock can be gotten on the higher ordered CPUs ...
>
> If this sounds reasonable, would you care to see a revised patch?
could you try this approach on your box that shows the livelock situation?
certainly we can add code that only triggers if there's some write attempt
- the important thing is to have the right read-mostly behavior.
Ingo
prev parent reply other threads:[~2003-09-04 8:59 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-09-03 19:21 linas
2003-09-03 19:44 ` Anton Blanchard
2003-09-03 20:10 ` linas
2003-09-04 8:59 ` Ingo Molnar [this message]
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=Pine.LNX.4.44.0309040457560.5452-100000@devserv.devel.redhat.com \
--to=mingo@redhat.com \
--cc=anton@samba.org \
--cc=davem@redhat.com \
--cc=linas@austin.ibm.com \
--cc=linux-kernel@vger.kernel.org \
--cc=mranweil@us.ibm.com \
--cc=riel@redhat.com \
/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
all inboxes | Powered by JetHome®