linux/arch/mn10300
Linus Torvalds 8e3e076c5a BKL: revert back to the old spinlock implementation
The generic semaphore rewrite had a huge performance regression on AIM7
(and potentially other BKL-heavy benchmarks) because the generic
semaphores had been rewritten to be simple to understand and fair.  The
latter, in particular, turns a semaphore-based BKL implementation into a
mess of scheduling.

The attempt to fix the performance regression failed miserably (see the
previous commit 00b41ec261 'Revert
"semaphore: fix"'), and so for now the simple and sane approach is to
instead just go back to the old spinlock-based BKL implementation that
never had any issues like this.

This patch also has the advantage of being reported to fix the
regression completely according to Yanmin Zhang, unlike the semaphore
hack which still left a couple percentage point regression.

As a spinlock, the BKL obviously has the potential to be a latency
issue, but it's not really any different from any other spinlock in that
respect.  We do want to get rid of the BKL asap, but that has been the
plan for several years.

These days, the biggest users are in the tty layer (open/release in
particular) and Alan holds out some hope:

  "tty release is probably a few months away from getting cured - I'm
   afraid it will almost certainly be the very last user of the BKL in
   tty to get fixed as it depends on everything else being sanely locked."

so while we're not there yet, we do have a plan of action.

Tested-by: Yanmin Zhang <yanmin_zhang@linux.intel.com>
Cc: Ingo Molnar <mingo@elte.hu>
Cc: Andi Kleen <andi@firstfloor.org>
Cc: Matthew Wilcox <matthew@wil.cx>
Cc: Alexander Viro <viro@ftp.linux.org.uk>
Cc: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2008-05-10 20:58:02 -07:00
..
boot mn10300: add the MN10300/AM33 architecture to the kernel 2008-02-08 09:22:30 -08:00
configs MN10300: Update asb2303_defconfig 2008-02-19 15:51:36 -08:00
kernel unified (weak) sys_pipe implementation 2008-05-03 13:50:33 -07:00
lib mn10300: add the MN10300/AM33 architecture to the kernel 2008-02-08 09:22:30 -08:00
mm mn10300: add the MN10300/AM33 architecture to the kernel 2008-02-08 09:22:30 -08:00
oprofile mn10300: add the MN10300/AM33 architecture to the kernel 2008-02-08 09:22:30 -08:00
proc-mn103e010 mn10300: add the MN10300/AM33 architecture to the kernel 2008-02-08 09:22:30 -08:00
unit-asb2303 mn10300: add platform MTD support for the ASB2303 board 2008-02-08 09:22:30 -08:00
unit-asb2305 iomap: fix 64 bits resources on 32 bits 2008-04-29 08:06:02 -07:00
Kconfig BKL: revert back to the old spinlock implementation 2008-05-10 20:58:02 -07:00
Kconfig.debug mn10300: add the MN10300/AM33 architecture to the kernel 2008-02-08 09:22:30 -08:00
Makefile mn10300: add the MN10300/AM33 architecture to the kernel 2008-02-08 09:22:30 -08:00