Permalink
Switch branches/tags
Commits on Sep 24, 2009
  1. Merge git://git.kernel.org/pub/scm/linux/kernel/git/rusty/linux-2.6-f…

    torvalds committed Sep 24, 2009
    …or-linus
    
    * git://git.kernel.org/pub/scm/linux/kernel/git/rusty/linux-2.6-for-linus: (39 commits)
      cpumask: Move deprecated functions to end of header.
      cpumask: remove unused deprecated functions, avoid accusations of insanity
      cpumask: use new-style cpumask ops in mm/quicklist.
      cpumask: use mm_cpumask() wrapper: x86
      cpumask: use mm_cpumask() wrapper: um
      cpumask: use mm_cpumask() wrapper: mips
      cpumask: use mm_cpumask() wrapper: mn10300
      cpumask: use mm_cpumask() wrapper: m32r
      cpumask: use mm_cpumask() wrapper: arm
      cpumask: Use accessors for cpu_*_mask: um
      cpumask: Use accessors for cpu_*_mask: powerpc
      cpumask: Use accessors for cpu_*_mask: mips
      cpumask: Use accessors for cpu_*_mask: m32r
      cpumask: remove arch_send_call_function_ipi
      cpumask: arch_send_call_function_ipi_mask: s390
      cpumask: arch_send_call_function_ipi_mask: powerpc
      cpumask: arch_send_call_function_ipi_mask: mips
      cpumask: arch_send_call_function_ipi_mask: m32r
      cpumask: arch_send_call_function_ipi_mask: alpha
      cpumask: remove obsolete topology_core_siblings and topology_thread_siblings: ia64
      ...
  2. headers: utsname.h redux

    Alexey Dobriyan authored and torvalds committed Sep 24, 2009
    * remove asm/atomic.h inclusion from linux/utsname.h --
       not needed after kref conversion
     * remove linux/utsname.h inclusion from files which do not need it
    
    NOTE: it looks like fs/binfmt_elf.c do not need utsname.h, however
    due to some personality stuff it _is_ needed -- cowardly leave ELF-related
    headers and files alone.
    
    Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com>
    Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
  3. Revert "kmod: fix race in usermodehelper code"

    Sebastian Andrzej Siewior authored and torvalds committed Sep 23, 2009
    This reverts commit c02e3f3 ("kmod: fix race in usermodehelper code")
    
    The patch is wrong.  UMH_WAIT_EXEC is called with VFORK what ensures
    that the child finishes prior returing back to the parent.  No race.
    
    In fact, the patch makes it even worse because it does the thing it
    claims not do:
    
     - It calls ->complete() on UMH_WAIT_EXEC
    
     - the complete() callback may de-allocated subinfo as seen in the
       following call chain:
    
        [<c009f904>] (__link_path_walk+0x20/0xeb4) from [<c00a094c>] (path_walk+0x48/0x94)
        [<c00a094c>] (path_walk+0x48/0x94) from [<c00a0a34>] (do_path_lookup+0x24/0x4c)
        [<c00a0a34>] (do_path_lookup+0x24/0x4c) from [<c00a158c>] (do_filp_open+0xa4/0x83c)
        [<c00a158c>] (do_filp_open+0xa4/0x83c) from [<c009ba90>] (open_exec+0x24/0xe0)
        [<c009ba90>] (open_exec+0x24/0xe0) from [<c009bfa8>] (do_execve+0x7c/0x2e4)
        [<c009bfa8>] (do_execve+0x7c/0x2e4) from [<c0026a80>] (kernel_execve+0x34/0x80)
        [<c0026a80>] (kernel_execve+0x34/0x80) from [<c004b514>] (____call_usermodehelper+0x130/0x148)
        [<c004b514>] (____call_usermodehelper+0x130/0x148) from [<c0024858>] (kernel_thread_exit+0x0/0x8)
    
       and the path pointer was NULL.  Good that ARM's kernel_execve()
       doesn't check the pointer for NULL or else I wouldn't notice it.
    
    The only race there might be is with UMH_NO_WAIT but it is too late for
    me to investigate it now.  UMH_WAIT_PROC could probably also use VFORK
    and we could save one exec.  So the only race I see is with UMH_NO_WAIT
    and recent scheduler changes where the child does not always run first
    might have trigger here something but as I said, it is late....
    
    Signed-off-by: Sebastian Andrzej Siewior <sebastian@breakpoint.cc>
    Acked-by: Neil Horman <nhorman@tuxdriver.com>
    Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
  4. cpumask: Move deprecated functions to end of header.

    rustyrussell committed Sep 24, 2009
    The new ones have pretty kerneldoc.  Move the old ones to the end to
    avoid confusing people.
    
    Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
    Cc: benh@kernel.crashing.org
  5. cpumask: remove unused deprecated functions, avoid accusations of ins…

    rustyrussell committed Sep 24, 2009
    …anity
    
    We're not forcing removal of the old cpu_ functions, but we might as
    well delete the now-unused ones.
    
    Especially CPUMASK_ALLOC and friends.  I actually got a phone call (!)
    from a hacker who thought I had introduced them as the new cpumask
    API.  He seemed bewildered that I had lost all taste.
    
    Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
    Cc: benh@kernel.crashing.org
  6. cpumask: use new-style cpumask ops in mm/quicklist.

    rustyrussell committed Sep 24, 2009
    This slipped past the previous sweeps.
    
    Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
    Acked-by: Christoph Lameter <cl@linux-foundation.org>
  7. cpumask: use mm_cpumask() wrapper: x86

    rustyrussell committed Sep 24, 2009
    Makes code futureproof against the impending change to mm->cpu_vm_mask (to be a pointer).
    
    It's also a chance to use the new cpumask_ ops which take a pointer
    (the older ones are deprecated, but there's no hurry for arch code).
    
    Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
  8. cpumask: use mm_cpumask() wrapper: um

    rustyrussell committed Sep 24, 2009
    Makes code futureproof against the impending change to mm->cpu_vm_mask.
    
    It's also a chance to use the new cpumask_ ops which take a pointer
    (the older ones are deprecated, but there's no hurry for arch code).
    
    Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
  9. cpumask: use mm_cpumask() wrapper: mips

    rustyrussell committed Sep 24, 2009
    Makes code futureproof against the impending change to mm->cpu_vm_mask.
    
    It's also a chance to use the new cpumask_ ops which take a pointer
    (the older ones are deprecated, but there's no hurry for arch code).
    
    Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
  10. cpumask: use mm_cpumask() wrapper: mn10300

    rustyrussell committed Sep 24, 2009
    Makes code futureproof against the impending change to mm->cpu_vm_mask
    (to be a pointer).
    
    It's also a chance to use the new cpumask_ ops which take a pointer
    (the older ones are deprecated, but there's no hurry for arch code).
    
    Also change the actual arg name here to "mm" (which it is), not "task".
    
    Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
  11. cpumask: use mm_cpumask() wrapper: m32r

    rustyrussell committed Sep 24, 2009
    Makes code futureproof against the impending change to mm->cpu_vm_mask.
    
    It's also a chance to use the new cpumask_ ops which take a pointer
    (the older ones are deprecated, but there's no hurry for arch code).
    
    Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
    Acked-by: Hirokazu Takata <takata@linux-m32r.org> (fixes)
  12. cpumask: use mm_cpumask() wrapper: arm

    rustyrussell committed Sep 24, 2009
    Makes code futureproof against the impending change to mm->cpu_vm_mask.
    
    It's also a chance to use the new cpumask_ ops which take a pointer
    (the older ones are deprecated, but there's no hurry for arch code).
    
    Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
  13. cpumask: Use accessors for cpu_*_mask: um

    rustyrussell committed Sep 24, 2009
    Use the accessors rather than frobbing bits directly (the new versions
    are const).
    
    Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
    Signed-off-by: Mike Travis <travis@sgi.com>
  14. cpumask: Use accessors for cpu_*_mask: powerpc

    rustyrussell committed Sep 24, 2009
    Use the accessors rather than frobbing bits directly (the new versions
    are const).
    
    Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
    Signed-off-by: Mike Travis <travis@sgi.com>
  15. cpumask: Use accessors for cpu_*_mask: mips

    rustyrussell committed Sep 24, 2009
    Use the accessors rather than frobbing bits directly (the new versions
    are const).
    
    Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
    Signed-off-by: Mike Travis <travis@sgi.com>
  16. cpumask: Use accessors for cpu_*_mask: m32r

    rustyrussell committed Sep 24, 2009
    Use the accessors rather than frobbing bits directly (the new versions
    are const).
    
    Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
    Signed-off-by: Mike Travis <travis@sgi.com>
  17. cpumask: remove arch_send_call_function_ipi

    rustyrussell committed Sep 24, 2009
    Now everyone is converted to arch_send_call_function_ipi_mask, remove
    the shim and the #defines.
    
    Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
  18. cpumask: arch_send_call_function_ipi_mask: s390

    rustyrussell committed Sep 24, 2009
    We're weaning the core code off handing cpumask's around on-stack.
    This introduces arch_send_call_function_ipi_mask().
    
    Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
  19. cpumask: arch_send_call_function_ipi_mask: powerpc

    rustyrussell committed Sep 24, 2009
    We're weaning the core code off handing cpumask's around on-stack.
    This introduces arch_send_call_function_ipi_mask(), and by defining
    it, the old arch_send_call_function_ipi is defined by the core code.
    
    Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
  20. cpumask: arch_send_call_function_ipi_mask: mips

    rustyrussell committed Sep 24, 2009
    We're weaning the core code off handing cpumask's around on-stack.
    This introduces arch_send_call_function_ipi_mask(), and by defining
    it, the old arch_send_call_function_ipi is defined by the core code.
    
    We also take the chance to wean the implementations off the
    obsolescent for_each_cpu_mask(): making send_ipi_mask take the pointer
    seemed the most natural way to ensure all implementations used
    for_each_cpu.
    
    Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
  21. cpumask: arch_send_call_function_ipi_mask: m32r

    rustyrussell committed Sep 24, 2009
    We're weaning the core code off handing cpumask's around on-stack.
    This introduces arch_send_call_function_ipi_mask(), and by defining
    it, the old arch_send_call_function_ipi is defined by the core code.
    
    We also take the chance to wean the implementations off the
    obsolescent for_each_cpu_mask(): making send_ipi_mask take the pointer
    seemed the most natural way to ensure all implementations used
    for_each_cpu.
    
    Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
  22. cpumask: arch_send_call_function_ipi_mask: alpha

    rustyrussell committed Sep 24, 2009
    We're weaning the core code off handing cpumask's around on-stack.
    This introduces arch_send_call_function_ipi_mask().
    
    We also take the chance to wean the send_ipi_message off the
    obsolescent for_each_cpu_mask(): making it take a pointer seemed the
    most natural way to do this.
    
    Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
  23. cpumask: remove obsolete topology_core_siblings and topology_thread_s…

    rustyrussell committed Sep 24, 2009
    …iblings: ia64
    
    There were replaced by topology_core_cpumask and topology_thread_cpumask.
    
    Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
  24. cpumask: remove obsolete topology_core_siblings and topology_thread_s…

    rustyrussell committed Sep 24, 2009
    …iblings: powerpc
    
    There were replaced by topology_core_cpumask and topology_thread_cpumask.
    
    Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
  25. cpumask: remove obsolete topology_core_siblings and topology_thread_s…

    rustyrussell committed Sep 24, 2009
    …iblings: s390
    
    There were replaced by topology_core_cpumask and topology_thread_cpumask.
    
    Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
  26. cpumask: remove obsolete topology_core_siblings and topology_thread_s…

    rustyrussell committed Sep 24, 2009
    …iblings: sparc
    
    There were replaced by topology_core_cpumask and topology_thread_cpumask.
    
    Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
  27. cpumask: remove obsolete topology_core_siblings and topology_thread_s…

    rustyrussell committed Sep 24, 2009
    …iblings: core
    
    There were replaced by topology_core_cpumask and topology_thread_cpumask.
    
    Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
  28. cpumask: remove the deprecated smp_call_function_mask()

    rustyrussell committed Sep 24, 2009
    Everyone is now using smp_call_function_many().
    
    Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
  29. ia64: convert last user of smp_call_function_mask

    rustyrussell committed Sep 24, 2009
    smp_call_function_many is the new version: it takes a pointer.  Also,
    use mm accessor macro while we're changing this.
    
    Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
  30. cpumask: don't define set_cpus_allowed() if CONFIG_CPUMASK_OFFSTACK=y

    rustyrussell committed Sep 24, 2009
    You're not supposed to pass cpumasks on the stack in that case.
    
    Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
  31. ACPI: remove cpumask_t usage

    Bjorn Helgaas authored and rustyrussell committed Sep 24, 2009
    set_cpus_allowed() is on the way out; replace it with
    set_cpus_allowed_ptr().
    
    Reference: http://lkml.org/lkml/2008/11/6/448
    
    Signed-off-by: Bjorn Helgaas <bjorn.helgaas@hp.com>
    Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
  32. cpumask: Remove mask field from comments

    Nobuhiro Iwamatsu authored and rustyrussell committed Jun 15, 2009
    By 7be23e2, mask field was deleted by irqaction. However, it was not
    deleted from comment.
    
    Signed-off-by: Nobuhiro Iwamatsu <iwamatsu.nobuhiro@renesas.com>
    CC: Rusty Russell <rusty@rustcorp.com.au>
    Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
  33. cpumask: remove unused mask field from struct irqaction.

    rustyrussell committed Sep 24, 2009
    Up until 1.1.83, the primitive human tribes used struct sigaction for
    interrupts.  The sa_mask field was overloaded to hold a pointer to the
    name.
    
    When someone created the new "struct irqaction" they carried across
    the "mask" field as a kind of ancestor worship: the fact that it was
    unused makes clear its spiritual significance.
    
    Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
  34. cpumask: remove last assignment to mask field of struct irqaction.

    rustyrussell committed Sep 24, 2009
    This snuck in after the patch which removed all the others.
    
    Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
    Cc: Ingo Molnar <mingo@elte.hu>
  35. cpumask: remove unused cpu_mask_all

    rustyrussell committed Sep 24, 2009
    It's only defined for NR_CPUS > BITS_PER_LONG; cpu_all_mask is always
    defined (and const).
    
    Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>