Skip to content
  1. Apr 12, 2009
    • Frederic Weisbecker's avatar
      lockdep: warn about lockdep disabling after kernel taint · 9eeba613
      Frederic Weisbecker authored
      
      
      Impact: provide useful missing info for developers
      
      Kernel taint can occur in several situations such as warnings,
      load of prorietary or staging modules, bad page, etc...
      
      But when such taint happens, a developer might still be working on
      the kernel, expecting that lockdep is still enabled. But a taint
      disables lockdep without ever warning about it.
      Such a kernel behaviour doesn't really help for kernel development.
      
      This patch adds this missing warning.
      
      Since the taint is done most of the time after the main message that
      explain the real source issue, it seems safe to warn about it inside
      add_taint() so that it appears at last, without hurting the main
      information.
      
      v2: Use a generic helper to disable lockdep instead of an
          open coded xchg().
      
      Signed-off-by: default avatarFrederic Weisbecker <fweisbec@gmail.com>
      Cc: Peter Zijlstra <peterz@infradead.org>
      LKML-Reference: <1239412638-6739-1-git-send-email-fweisbec@gmail.com>
      Signed-off-by: default avatarIngo Molnar <mingo@elte.hu>
      9eeba613
  2. Apr 11, 2009
    • Tejun Heo's avatar
      percpu: unbreak alpha percpu · 066123a5
      Tejun Heo authored
      
      
      For the time being, move the generic percpu_*() accessors to
      linux/percpu.h.
      
      asm-generic/percpu.h is meant to carry generic stuff for low level
      stuff - declarations, definitions and pointer offset calculation
      and so on but not for generic interface.
      
      Signed-off-by: default avatarIngo Molnar <mingo@elte.hu>
      066123a5
  3. Apr 10, 2009
    • Heiko Carstens's avatar
      mutex: have non-spinning mutexes on s390 by default · 36cd3c9f
      Heiko Carstens authored
      
      
      Impact: performance regression fix for s390
      
      The adaptive spinning mutexes will not always do what one would expect on
      virtualized architectures like s390. Especially the cpu_relax() loop in
      mutex_spin_on_owner might hurt if the mutex holding cpu has been scheduled
      away by the hypervisor.
      
      We would end up in a cpu_relax() loop when there is no chance that the
      state of the mutex changes until the target cpu has been scheduled again by
      the hypervisor.
      
      For that reason we should change the default behaviour to no-spin on s390.
      
      We do have an instruction which allows to yield the current cpu in favour of
      a different target cpu. Also we have an instruction which allows us to figure
      out if the target cpu is physically backed.
      
      However we need to do some performance tests until we can come up with
      a solution that will do the right thing on s390.
      
      Signed-off-by: default avatarHeiko Carstens <heiko.carstens@de.ibm.com>
      Acked-by: default avatarPeter Zijlstra <a.p.zijlstra@chello.nl>
      Cc: Martin Schwidefsky <schwidefsky@de.ibm.com>
      Cc: Christian Borntraeger <borntraeger@de.ibm.com>
      LKML-Reference: <20090409184834.7a0df7b2@osiris.boeblingen.de.ibm.com>
      Signed-off-by: default avatarIngo Molnar <mingo@elte.hu>
      36cd3c9f
  4. Apr 08, 2009
    • Zhaolei's avatar
      printk: fix wrong format string iter for printk · 022624a7
      Zhaolei authored
      
      
      printk("%Q");
      
       Output before patch:  %QQ
       Output  after patch:  %Q
      
      Signed-off-by: default avatarZhao Lei <zhaolei@cn.fujitsu.com>
      Acked-by: default avatarLai Jiangshan <laijs@cn.fujitsu.com>
      Acked-by: default avatarFrederic Weisbecker <fweisbec@gmail.com>
      Cc: torvalds@linux-foundation.org
      Cc: Steven Rostedt <rostedt@goodmis.org>
      LKML-Reference: <49CC97B6.7040809@cn.fujitsu.com>
      Signed-off-by: default avatarIngo Molnar <mingo@elte.hu>
      022624a7
    • Ingo Molnar's avatar
      Merge commit 'v2.6.30-rc1' into core/urgent · ff96e612
      Ingo Molnar authored
      
      
      Merge reason: need latest upstream to queue up dependent fix
      
      Signed-off-by: default avatarIngo Molnar <mingo@elte.hu>
      ff96e612
    • Linus Torvalds's avatar
      Linux 2.6.30-rc1 · 577c9c45
      Linus Torvalds authored
      v2.6.30-rc1
      577c9c45
    • Linus Torvalds's avatar
      Merge branch 'core/softlockup' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/linux-2.6-tip · 1551260d
      Linus Torvalds authored
      * 'core/softlockup' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/linux-2.6-tip:
        softlockup: make DETECT_HUNG_TASK default depend on DETECT_SOFTLOCKUP
        softlockup: move 'one' to the softlockup section in sysctl.c
        softlockup: ensure the task has been switched out once
        softlockup: remove timestamp checking from hung_task
        softlockup: convert read_lock in hung_task to rcu_read_lock
        softlockup: check all tasks in hung_task
        softlockup: remove unused definition for spawn_softlockup_task
        softlockup: fix potential race in hung_task when resetting timeout
        softlockup: fix to allow compiling with !DETECT_HUNG_TASK
        softlockup: decouple hung tasks check from softlockup detection
      1551260d
    • Linus Torvalds's avatar
      Merge branch 'tracing-fixes-for-linus' of... · c93f216b
      Linus Torvalds authored
      Merge branch 'tracing-fixes-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/linux-2.6-tip
      
      * 'tracing-fixes-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/linux-2.6-tip:
        branch tracer, intel-iommu: fix build with CONFIG_BRANCH_TRACER=y
        branch tracer: Fix for enabling branch profiling makes sparse unusable
        ftrace: Correct a text align for event format output
        Update /debug/tracing/README
        tracing/ftrace: alloc the started cpumask for the trace file
        tracing, x86: remove duplicated #include
        ftrace: Add check of sched_stopped for probe_sched_wakeup
        function-graph: add proper initialization for init task
        tracing/ftrace: fix missing include string.h
        tracing: fix incorrect return type of ns2usecs()
        tracing: remove CALLER_ADDR2 from wakeup tracer
        blktrace: fix pdu_len when tracing packet command requests
        blktrace: small cleanup in blk_msg_write()
        blktrace: NUL-terminate user space messages
        tracing: move scripts/trace/power.pl to scripts/tracing/power.pl
      c93f216b
    • Linus Torvalds's avatar
      Merge branch 'irq/threaded' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/linux-2.6-tip · c61b79b6
      Linus Torvalds authored
      * 'irq/threaded' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/linux-2.6-tip:
        genirq: fix devres.o build for GENERIC_HARDIRQS=n
        genirq: provide old request_irq() for CONFIG_GENERIC_HARDIRQ=n
        genirq: threaded irq handlers review fixups
        genirq: add support for threaded interrupts to devres
        genirq: add threaded interrupt handler support
      c61b79b6
    • Trond Myklebust's avatar
      NFS: Fix the return value in nfs_page_mkwrite() · 2b2ec755
      Trond Myklebust authored
      Commit c2ec175c
      
       ("mm: page_mkwrite
      change prototype to match fault") exposed a bug in the NFS
      implementation of page_mkwrite.  We should be returning 0 on success...
      
      Signed-off-by: default avatarTrond Myklebust <Trond.Myklebust@netapp.com>
      Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
      2b2ec755
    • Linus Torvalds's avatar
      Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jbarnes/pci-2.6 · 8e2c4f28
      Linus Torvalds authored
      * 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jbarnes/pci-2.6:
        PCI: pci_slot: grab refcount on slot's bus
        PCI Hotplug: acpiphp: grab refcount on p2p subordinate bus
        PCI: allow PCI core hotplug to remove PCI root bus
        PCI: Fix oops in pci_vpd_truncate
        PCI: don't corrupt enable_cnt when doing manual resource alignment
        PCI: annotate pci_rescan_bus as __ref, not __devinit
        PCI-IOV: fix missing kernel-doc
        PCI: Setup disabled bridges even if buses are added
        PCI: SR-IOV quirk for Intel 82576 NIC
      8e2c4f28
    • Linus Torvalds's avatar
      Merge branch 'for-linus' of git://git.kernel.dk/linux-2.6-block · 6a5d2638
      Linus Torvalds authored
      * 'for-linus' of git://git.kernel.dk/linux-2.6-block:
        loop: mutex already unlocked in loop_clr_fd()
        cfq-iosched: don't let idling interfere with plugging
        block: remove unused REQ_UNPLUG
        cfq-iosched: kill two unused cfqq flags
        cfq-iosched: change dispatch logic to deal with single requests at the time
        mflash: initial support
        cciss: change to discover first memory BAR
        cciss: kernel scan thread for MSA2012
        cciss: fix residual count for block pc requests
        block: fix inconsistency in I/O stat accounting code
        block: elevator quiescing helpers
      6a5d2638
    • Linus Torvalds's avatar
      Fix build errors due to CONFIG_BRANCH_TRACER=y · aeeae868
      Linus Torvalds authored
      
      
      The code that enables branch tracing for all (non-constant) branches
      plays games with the preprocessor and #define's the C 'if ()' construct
      to do tracing.
      
      That's all fine, but it fails for some unusual but valid C code that is
      sometimes used in macros, notably by the intel-iommu code:
      
      	if (i=drhd->iommu, drhd->ignored) ..
      
      because now the preprocessor complains about multiple arguments to the
      'if' macro.
      
      So make the macro expansion of this particularly horrid trick use
      varargs, and handle the case of comma-expressions in if-statements.  Use
      another macro to do it cleanly in just one place.
      
      This replaces a patch by David (and acked by Steven) that did this all
      inside that one already-too-horrid macro.
      
      Tested-by: default avatarIngo Molnar <mingo@elte.hu>
      Cc: David Woodhouse <dwmw2@infradead.org>
      Cc: Steven Rostedt <rostedt@goodmis.org>
      Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
      aeeae868
  5. Apr 07, 2009