Skip to content
Commits on Sep 24, 2009
  1. @torvalds

    Merge git://git.kernel.org/pub/scm/linux/kernel/git/rusty/linux-2.6-f…

    torvalds committed
    …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. @torvalds

    headers: utsname.h redux

    Alexey Dobriyan committed with torvalds
    * 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. @torvalds

    Revert "kmod: fix race in usermodehelper code"

    Sebastian Andrzej Siewior committed with torvalds
    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. @rustyrussell

    cpumask: Move deprecated functions to end of header.

    rustyrussell committed
    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. @rustyrussell

    cpumask: remove unused deprecated functions, avoid accusations of ins…

    rustyrussell committed
    …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. @rustyrussell

    cpumask: use new-style cpumask ops in mm/quicklist.

    rustyrussell committed
    This slipped past the previous sweeps.
    
    Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
    Acked-by: Christoph Lameter <cl@linux-foundation.org>
  7. @rustyrussell

    cpumask: use mm_cpumask() wrapper: x86

    rustyrussell committed
    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. @rustyrussell

    cpumask: use mm_cpumask() wrapper: um

    rustyrussell committed
    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. @rustyrussell

    cpumask: use mm_cpumask() wrapper: mips

    rustyrussell committed
    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. @rustyrussell

    cpumask: use mm_cpumask() wrapper: mn10300

    rustyrussell committed
    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. @rustyrussell

    cpumask: use mm_cpumask() wrapper: m32r

    rustyrussell committed
    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. @rustyrussell

    cpumask: use mm_cpumask() wrapper: arm

    rustyrussell committed
    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. @rustyrussell

    cpumask: Use accessors for cpu_*_mask: um

    rustyrussell committed
    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. @rustyrussell

    cpumask: Use accessors for cpu_*_mask: powerpc

    rustyrussell committed
    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. @rustyrussell

    cpumask: Use accessors for cpu_*_mask: mips

    rustyrussell committed
    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. @rustyrussell

    cpumask: Use accessors for cpu_*_mask: m32r

    rustyrussell committed
    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. @rustyrussell

    cpumask: remove arch_send_call_function_ipi

    rustyrussell committed
    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. @rustyrussell

    cpumask: arch_send_call_function_ipi_mask: s390

    rustyrussell committed
    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. @rustyrussell

    cpumask: arch_send_call_function_ipi_mask: powerpc

    rustyrussell committed
    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. @rustyrussell

    cpumask: arch_send_call_function_ipi_mask: mips

    rustyrussell committed
    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. @rustyrussell

    cpumask: arch_send_call_function_ipi_mask: m32r

    rustyrussell committed
    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. @rustyrussell

    cpumask: arch_send_call_function_ipi_mask: alpha

    rustyrussell committed
    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. @rustyrussell

    cpumask: remove obsolete topology_core_siblings and topology_thread_s…

    rustyrussell committed
    …iblings: ia64
    
    There were replaced by topology_core_cpumask and topology_thread_cpumask.
    
    Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
  24. @rustyrussell

    cpumask: remove obsolete topology_core_siblings and topology_thread_s…

    rustyrussell committed
    …iblings: powerpc
    
    There were replaced by topology_core_cpumask and topology_thread_cpumask.
    
    Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
  25. @rustyrussell

    cpumask: remove obsolete topology_core_siblings and topology_thread_s…

    rustyrussell committed
    …iblings: s390
    
    There were replaced by topology_core_cpumask and topology_thread_cpumask.
    
    Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
  26. @rustyrussell

    cpumask: remove obsolete topology_core_siblings and topology_thread_s…

    rustyrussell committed
    …iblings: sparc
    
    There were replaced by topology_core_cpumask and topology_thread_cpumask.
    
    Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
  27. @rustyrussell

    cpumask: remove obsolete topology_core_siblings and topology_thread_s…

    rustyrussell committed
    …iblings: core
    
    There were replaced by topology_core_cpumask and topology_thread_cpumask.
    
    Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
  28. @rustyrussell

    cpumask: remove the deprecated smp_call_function_mask()

    rustyrussell committed
    Everyone is now using smp_call_function_many().
    
    Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
  29. @rustyrussell

    ia64: convert last user of smp_call_function_mask

    rustyrussell committed
    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. @rustyrussell

    cpumask: don't define set_cpus_allowed() if CONFIG_CPUMASK_OFFSTACK=y

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

    ACPI: remove cpumask_t usage

    Bjorn Helgaas committed with rustyrussell
    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. @rustyrussell

    cpumask: Remove mask field from comments

    Nobuhiro Iwamatsu committed with rustyrussell
    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. @rustyrussell

    cpumask: remove unused mask field from struct irqaction.

    rustyrussell committed
    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. @rustyrussell

    cpumask: remove last assignment to mask field of struct irqaction.

    rustyrussell committed
    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. @rustyrussell

    cpumask: remove unused cpu_mask_all

    rustyrussell committed
    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>
Something went wrong with that request. Please try again.