linux/arch/alpha/kernel
Peter Zijlstra aa02cd2d9b xtime_lock vs update_process_times
Commit d3d74453c3 ("hrtimer: fixup the
HRTIMER_CB_IRQSAFE_NO_SOFTIRQ fallback") broke several archs, and since
only Russell bothered to merge the fix, and Greg to ACK his arch, I'm
sending this for merger.

I have confirmation that the Alpha bit results in a booting kernel.
That leaves: blackfin, frv, sh and sparc untested.

The deadlock in question was found by Russell:

  IRQ handle
    -> timer_tick() - xtime seqlock held for write
      -> update_process_times()
        -> run_local_timers()
          -> hrtimer_run_queues()
            -> hrtimer_get_softirq_time() - tries to get a read lock

Now, Thomas assures me the fix is trivial, only do_timer() needs to be
done under the xtime_lock, and update_process_times() can savely be
removed from under it.

Signed-off-by: Peter Zijlstra <a.p.zijlstra@chello.nl>
Acked-by: Greg Ungerer <gerg@uclinux.org>
CC: Richard Henderson <rth@twiddle.net>
CC: Bryan Wu <bryan.wu@analog.com>
CC: David Howells <dhowells@redhat.com>
CC: Paul Mundt <lethal@linux-sh.org>
CC: William Irwin <wli@holomorphy.com>
Acked-by: Ingo Molnar <mingo@elte.hu>
Acked-by: Ivan Kokshaysky <ink@jurassic.park.msu.ru>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2008-02-13 13:29:25 -08:00
..
alpha_ksyms.c
asm-offsets.c
console.c ALPHA: support graphics on non-zero PCI domains 2007-06-01 08:18:29 -07:00
core_apecs.c
core_cia.c
core_irongate.c Introduce flags for reserve_bootmem() 2008-02-07 08:42:25 -08:00
core_lca.c
core_marvel.c ALPHA: support graphics on non-zero PCI domains 2007-06-01 08:18:29 -07:00
core_mcpcia.c
core_polaris.c
core_t2.c
core_titan.c ALPHA: support graphics on non-zero PCI domains 2007-06-01 08:18:29 -07:00
core_tsunami.c ALPHA: support graphics on non-zero PCI domains 2007-06-01 08:18:29 -07:00
core_wildfire.c
entry.S alpha: convert to generic sys_ptrace 2007-10-16 09:43:03 -07:00
err_common.c
err_ev6.c
err_ev7.c alpha: build fixes 2007-12-17 19:28:16 -08:00
err_impl.h
err_marvel.c alpha: build fixes 2007-12-17 19:28:16 -08:00
err_titan.c alpha: build fixes 2007-12-17 19:28:16 -08:00
es1888.c
gct.c
head.S deal with alpha section warnings 2007-07-26 11:11:57 -07:00
init_task.c
io.c
irq_alpha.c
irq_i8259.c
irq_impl.h
irq_pyxis.c
irq_srm.c
irq.c
machvec_impl.h alpha: build fixes 2007-12-17 19:28:16 -08:00
Makefile kbuild: enable 'make CFLAGS=...' to add additional options to CC 2007-10-14 22:21:35 +02:00
module.c some kmalloc/memset ->kzalloc (tree wide) 2007-07-19 10:04:50 -07:00
ns87312.c
osf_sys.c aout: remove unnecessary inclusions of {asm, linux}/a.out.h 2008-02-08 09:22:30 -08:00
pci_impl.h
pci_iommu.c iommu sg merging: alpha: make pci_iommu respect the segment size limits 2008-02-05 09:44:10 -08:00
pci-noop.c alpha: kill deprecated virt_to_bus 2008-02-05 09:44:21 -08:00
pci.c deal with alpha section warnings 2007-07-26 11:11:57 -07:00
process.c aout: remove unnecessary inclusions of {asm, linux}/a.out.h 2008-02-08 09:22:30 -08:00
proto.h ALPHA: support graphics on non-zero PCI domains 2007-06-01 08:18:29 -07:00
ptrace.c alpha: convert to generic sys_ptrace 2007-10-16 09:43:03 -07:00
semaphore.c Use helpers to obtain task pid in printks (arch code) 2007-10-19 11:53:43 -07:00
setup.c procfs: constify function pointer tables 2008-02-08 09:22:38 -08:00
signal.c alpha: support new syscalls 2007-05-30 10:07:54 -07:00
smc37c93x.c
smc37c669.c
smp.c calibrate_delay() must be __cpuinit 2008-02-06 10:41:08 -08:00
srm_env.c
srmcons.c alpha: fix trivial section mismatch warnings 2007-07-16 09:05:37 -07:00
sys_alcor.c spelling fixes: arch/alpha/ 2007-10-20 01:04:37 +02:00
sys_cabriolet.c
sys_dp264.c ALPHA: support graphics on non-zero PCI domains 2007-06-01 08:18:29 -07:00
sys_eb64p.c
sys_eiger.c
sys_jensen.c
sys_marvel.c alpha: fix trivial section mismatch warnings 2007-07-16 09:05:37 -07:00
sys_miata.c
sys_mikasa.c
sys_nautilus.c
sys_noritake.c
sys_rawhide.c
sys_ruffian.c
sys_rx164.c
sys_sable.c
sys_sio.c spelling fixes: arch/alpha/ 2007-10-20 01:04:37 +02:00
sys_sx164.c
sys_takara.c
sys_titan.c alpha: -Werror fixes for sys_titan.c 2007-08-11 15:47:42 -07:00
sys_wildfire.c
systbls.S timerfd: new timerfd API 2008-02-05 09:44:07 -08:00
time.c xtime_lock vs update_process_times 2008-02-13 13:29:25 -08:00
traps.c Use helpers to obtain task pid in printks (arch code) 2007-10-19 11:53:43 -07:00
vmlinux.lds.S all archs: consolidate init and exit sections in vmlinux.lds.h 2008-01-28 23:21:17 +01:00