25 Mar, 2006

21 commits


24 Mar, 2006

19 commits

  • uevent_seqnum and uevent_helper are only defined if CONFIG_HOTPLUG=y,
    CONFIG_NET=n.

    (I stole this back from Greg's tree - it makes allnoconfig work).

    Cc: Greg KH
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Andrew Morton
     
  • Copies user-space string with strndup_user() and moves the type string
    duplication code to a function (thus fixing a wrong check on the length of the
    type.)

    Signed-off-by: Davi Arnaut
    Cc: David Howells
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Davi Arnaut
     
  • Change hand-coded userspace string copying to strndup_user.

    Signed-off-by: Davi Arnaut
    Cc: David Howells
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Davi Arnaut
     
  • This patch series creates a strndup_user() function to easy copying C strings
    from userspace. Also we avoid common pitfalls like userspace modifying the
    final \0 after the strlen_user().

    Signed-off-by: Davi Arnaut
    Cc: David Howells
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Davi Arnaut
     
  • Make the softlockup detector purely timer-interrupt driven, removing
    softirq-context (timer) dependencies. This means that if the softlockup
    watchdog triggers, it has truly observed a longer than 10 seconds
    scheduling delay of a SCHED_FIFO prio 99 task.

    (the patch also turns off the softlockup detector during the initial bootup
    phase and does small style fixes)

    Signed-off-by: Ingo Molnar
    Signed-off-by: Ingo Molnar
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Ingo Molnar
     
  • If the change of personality does not lead to change of exec domain,
    __set_personality() returned without releasing the module reference
    acquired by lookup_exec_domain().

    Signed-off-by: Sergey Vlasov
    Cc: Christoph Hellwig
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Sergey Vlasov
     
  • In filesystems with the meta block group flag on, ext3_bg_num_gdb() fails
    to report the correct number of blocks used to store the group descriptor
    backups in a given group. It happens because meta_bg follows a different
    logic from the original ext3 backup placement in groups multiples of 3, 5
    and 7.

    Signed-off-by: Glauber de Oliveira Costa
    Cc: Andreas Dilger
    Cc: "Stephen C. Tweedie"
    Cc: Alex Tomas
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Glauber de Oliveira Costa
     
  • Document the fact that setrlimit(RLIMIT_CPU) doesn't return error codes when
    it should. I don't think we can fix this without a 2.7.x..

    Cc: Martin Schwidefsky
    Cc: Ulrich Weigand
    Cc: Cliff Wickman
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Andrew Morton
     
  • At present the kernel doesn't honour an attempt to set RLIMIT_CPU to zero
    seconds. But the spec says it should, and that's what 2.4.x does.

    Fixing this for real would involve some complexity (such as adding a new
    it-has-been-set flag to the task_struct, and testing that everwhere, instead
    of overloading the value of it_prof_expires).

    Given that a 2.4 kernel won't actually send the signal until one second has
    expired anyway, let's just handle this case by treating the caller's
    zero-seconds as one second.

    Cc: Martin Schwidefsky
    Cc: Ulrich Weigand
    Cc: Cliff Wickman
    Acked-by: Ingo Molnar
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Andrew Morton
     
  • - Whitespace cleanups

    - Make that expression comprehensible.

    There's a potential logic change here: we do the "is it_prof_expires equal to
    zero" test after converting it to seconds, rather than doing the comparison
    between raw cputime_t's.

    But given that it's in units of seconds anyway, that shouldn't change
    anything.

    Cc: Martin Schwidefsky
    Cc: Ulrich Weigand
    Cc: Cliff Wickman
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Andrew Morton
     
  • Drivers have no business looking at the task list and thus using this lock.
    The only possibly modular users left are:

    arch/ia64/kernel/mca.c
    drivers/edac/edac_mc.c
    fs/binfmt_elf.c

    which I'll send out fixes for soon.

    Signed-off-by: Christoph Hellwig
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Christoph Hellwig
     
  • - Remove more unused headers
    - Remove various typedefs
    - Correct type of PaddrP (physical addresses should be ulong)
    - Kill use of bcopy
    - More printk cleanups
    - Kill true/false
    - Clean up direct access to pci BARs

    Signed-off-by: Alan Cox
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Alan Cox
     
  • - Remove more unused headers
    - Remove various typedefs
    - Correct type of PaddrP (physical addresses should be ulong)
    - Kill use of bcopy
    - More printk cleanups
    - Kill true/false
    - Clean up direct access to pci BARs

    Signed-off-by: Alan Cox
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Alan Cox
     
  • Final polish. There is no more save_flags/cli type locking left. We also no
    longer use the pcicopy function and file so they can go.

    Signed-off-by: Alan Cox
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Alan Cox
     
  • Third large chunk of code cleanup. The split between this and #3 and #4 is
    fairly arbitary and due to the message length limit on the list. These
    patches continue the process of ripping out macros and typedefs while cleaning
    up lots of 32bit assumptions. Several inlines for compatibility also get
    removed and that causes a lot of noise.

    Signed-off-by: Alan Cox
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Alan Cox
     
  • Second large chunk of code cleanup. The split between this and #3 and #4 is
    fairly arbitary and due to the message length limit on the list. These
    patches continue the process of ripping out macros and typedefs while cleaning
    up lots of 32bit assumptions. Several inlines for compatibility also get
    removed and that causes a lot of noise.

    Signed-off-by: Alan Cox
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Alan Cox
     
  • First large chunk of code cleanup. The split between this and #3 and #4 is
    fairly arbitary and due to the message length limit on the list. These
    patches continue the process of ripping out macros and typedefs while cleaning
    up lots of 32bit assumptions. Several inlines for compatibility also get
    removed and that causes a lot of noise.

    Signed-off-by: Alan Cox
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Alan Cox
     
  • More header cleanups, strip out typedefs and remove cruft. There are a lot of
    magic macros that can go and also a great deal of abuse of volatile that is
    not needed any more as this patch set cleans up the misuse of pointer access
    to ISA and PCI space.

    It now builds cleanly on 64bit, although there is more work left to do

    Signed-off-by: Alan Cox
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Alan Cox
     
  • After the indent we can now clean up unused code, and fix all myriad cases
    that don't use readb/writeb properly.

    Signed-off-by: Alan Cox
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Alan Cox