From: Peter Williams <pwil3058@bigpond.net.au>
To: Ingo Molnar <mingo@elte.hu>
Cc: Andrew Morton <akpm@osdl.org>,
linux-kernel@vger.kernel.org, tglx@linutronix.de,
torvalds@osdl.org, Esben Nielsen <simlo@phys.au.dk>
Subject: Re: [patch] PI-futex patchset: -V4
Date: Sat, 01 Apr 2006 11:19:10 +1100 [thread overview]
Message-ID: <442DC6FE.6070301@bigpond.net.au> (raw)
In-Reply-To: <20060331191445.GA2250@elte.hu>
Ingo Molnar wrote:
> this is version -V4 of the PI-futex patchset (ontop of current -mm2,
> which includes -V3.)
>
> A clean queue of split-up patches can be found at:
>
> http://redhat.com/~mingo/PI-futex-patches/PI-futex-patches-V4.tar.gz
>
> the -V4 codebase has been tested on the glibc code (all testcases pass)
> and under load as well. (The -V4 code is included in the 2.6.16-rt12
> code as well that i released earlier today.)
>
> Changes since -V3:
>
> - added Esben Nielsen's PI locking code, Thomas Gleixner made it
> work in cornercases and under load. This is significantly simpler (it
> removes 50 lines of code from rtmutex.c). The main difference is that
> instead of holding all locks along a dependency chain, this code
> propagates PI priorities (and detects deadlocks) by holding at most
> two locks at once, and by being preemptible between such steps.
>
> - Jakub Jelinek did a detailed review of the new futex code and found
> some new races, which Thomas Gleixner fixed.
>
> - to fix a pthread_mutex_trylock() related race, FUTEX_TRYLOCK_PI has
> been added (Thomas Gleixner)
>
> - documentation fixes based on feedback from Tim Bird
>
> - added Documentation/pi-futex.txt (in addition to rt-mutex.txt)
>
> - added the plist debugging patch (which was part of -rt but wasnt part
> of the pi-futex queue before). This caught a couple of SMP bugs in
> the past.
>
> - implemented more scalable held-locks debugging - it's now a per-task
> list of held locks, instead of a global list. This is similarly
> effective to the global list, but much more scalable. (This approach
> will also be added to the stock kernel/mutex.c code.)
>
> - do not fiddle with irq flags in rtmutex.c - it's not needed.
>
> - clone/fork fix: do not let parent's potential PI priority 'leak' into
> child threads or processes.
>
> - added /proc/sys/kernel/max_lock_depth with a default limit of 1024,
> to limit the amount of deadlock-checking the kernel will do.
>
> - small enhancement to the t3-l1-pi-signal.tst testcase.
Wouldn't this be a good opportunity to redefine SCHED_BATCH as 4 instead
of 3 so that you can use ((p->policy & (SCHED_FIFO|SCHED_RR)) == 0)
instead of (p->policy != SCHED_NORMAL && p->policy != SCHED_BATCH)?
That expression will be called fairly frequently and SCHED_BATCH hasn't
been around long enough for a change of value to break very much use
space code.
Peter
--
Peter Williams pwil3058@bigpond.net.au
"Learning, n. The kind of ignorance distinguishing the studious."
-- Ambrose Bierce
prev parent reply other threads:[~2006-04-01 0:19 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-03-25 18:46 [patch 05/10] PI-futex: rt-mutex core Ingo Molnar
2006-03-26 5:35 ` Andrew Morton
2006-03-26 23:33 ` Ingo Molnar
2006-03-26 6:07 ` Andrew Morton
2006-03-26 16:03 ` [patch] PI-futex: -V2 Ingo Molnar
2006-03-26 19:16 ` Andrew Morton
2006-03-26 23:30 ` Ingo Molnar
2006-03-26 23:16 ` [patch] PI-futex: -V3 Ingo Molnar
2006-03-28 10:17 ` [patch-mm2] PI-futex: fix timeout race Thomas Gleixner
2006-03-31 19:14 ` [patch] PI-futex patchset: -V4 Ingo Molnar
2006-03-31 19:23 ` Ingo Molnar
2006-04-01 0:19 ` Peter Williams [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=442DC6FE.6070301@bigpond.net.au \
--to=pwil3058@bigpond.net.au \
--cc=akpm@osdl.org \
--cc=linux-kernel@vger.kernel.org \
--cc=mingo@elte.hu \
--cc=simlo@phys.au.dk \
--cc=tglx@linutronix.de \
--cc=torvalds@osdl.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
Powered by JetHome