1. 14 Apr, 2006 12 commits
    • Andrew Morton's avatar
      [PATCH] pm: print name of failed suspend function · 02669492
      Andrew Morton authored
      Print more diagnostic info to help identify the source of power management
      suspend failures.
      
      Example:
      
      usb_hcd_pci_suspend(): pci_set_power_state+0x0/0x1af() returns -22
      pci_device_suspend(): usb_hcd_pci_suspend+0x0/0x11b() returns -22
      suspend_device(): pci_device_suspend+0x0/0x34() returns -22
      
      Work-in-progress.  It needs lots more suspend_report_result() calls sprinkled
      everywhere.
      
      Cc: Patrick Mochel <mochel@digitalimplant.org>
      Cc: Pavel Machek <pavel@ucw.cz>
      Cc: Nigel Cunningham <nigel@suspend2.net>
      Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
      Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
      02669492
    • Ryan Wilson's avatar
      [PATCH] driver core: driver_bind attribute returns incorrect value · 37225401
      Ryan Wilson authored
      The manual driver <-> device binding attribute in sysfs doesn't return
      the correct value on failure or success of driver_probe_device.
      driver_probe_device returns 1 on success (the driver accepted the
      device) or 0 on probe failure (when the driver didn't accept the
      device but no real error occured). However, the attribute can't just
      return 0 or 1, it must return the number of bytes consumed from buf
      or an error value. Returning 0 indicates to userspace that nothing
      was written (even though the kernel has tried to do the bind/probe and
      failed). Returning 1 indicates that only one character was accepted in
      which case userspace will re-try the write with a partial string.
      
      A more correct version of driver_bind would return count (to indicate
      the entire string was consumed) when driver_probe_device returns 1
      and -ENODEV when driver_probe_device returns 0. This patch makes that
      change.
      Signed-off-by: default avatarRyan Wilson <hap9@epoch.ncsc.mil>
      Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
      37225401
    • Jayachandran C's avatar
      [PATCH] driver core: fix unnecessary NULL check in drivers/base/class.c · a1438890
      Jayachandran C authored
      This patch tries to fix an issue in drivers/base/class.c, please
      review and apply if correct.
      
      Patch Description:
        "parent_class" is checked for NULL already, so removed the unnecessary
        check.
      Signed-off-by: default avatarJayachandran C. <c.jayachandran@gmail.com>
      Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
      a1438890
    • Kay Sievers's avatar
      [PATCH] BLOCK: delay all uevents until partition table is scanned · d4d7e5df
      Kay Sievers authored
      [BLOCK] delay all uevents until partition table is scanned
      
      Here we delay the annoucement of all block device events until the
      disk's partition table is scanned and all partition devices are already
      created and sysfs is populated.
      
      We have a bunch of old bugs for removable storage handling where we
      probe successfully for a filesystem on the raw disk, but at the
      same time the kernel recognizes a partition table and creates partition
      devices.
      Currently there is no sane way to tell if partitions will show up or not
      at the time the disk device is announced to userspace. With the delayed
      events we can simply skip any probe for a filesystem on the raw disk when
      we find already present partitions.
      Signed-off-by: default avatarKay Sievers <kay.sievers@suse.de>
      Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
      d4d7e5df
    • Alan Stern's avatar
      [PATCH] driver core: safely unbind drivers for devices not on a bus · 0f836ca4
      Alan Stern authored
      This patch (as667) changes the __device_release_driver() routine to
      prevent it from crashing when it runs across a device not on any bus.
      This seems logical, inasmuch as the corresponding bus_add_device()
      routine has an explicit check allowing it to accept such devices.
      Signed-off-by: default avatarAlan Stern <stern@rowland.harvard.edu>
      Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
      0f836ca4
    • NeilBrown's avatar
      [PATCH] sysfs: Allow sysfs attribute files to be pollable · 4508a7a7
      NeilBrown authored
      It works like this:
        Open the file
        Read all the contents.
        Call poll requesting POLLERR or POLLPRI (so select/exceptfds works)
        When poll returns,
           close the file and go to top of loop.
         or lseek to start of file and go back to the 'read'.
      
      Events are signaled by an object manager calling
         sysfs_notify(kobj, dir, attr);
      
      If the dir is non-NULL, it is used to find a subdirectory which
      contains the attribute (presumably created by sysfs_create_group).
      
      This has a cost of one int  per attribute, one wait_queuehead per kobject,
      one int per open file.
      
      The name "sysfs_notify" may be confused with the inotify
      functionality.  Maybe it would be nice to support inotify for sysfs
      attributes as well?
      
      This patch also uses sysfs_notify to allow /sys/block/md*/md/sync_action
      to be pollable
      Signed-off-by: default avatarNeil Brown <neilb@suse.de>
      Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
      4508a7a7
    • Samuel Thibault's avatar
      [PATCH] Enhancing accessibility of lxdialog · f043ca43
      Samuel Thibault authored
      For easily getting fairly good accessibility, the TTY cursor should
      always be left at the focus location.  This patch fixes the checklist by
      just having the list refreshed after the dialog box (hence the cursor
      position remains in the list).
      Signed-off-by: default avatarSamuel Thibault <samuel.thibault@ens-lyon.org>
      Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
      f043ca43
    • Linus Torvalds's avatar
      Merge branch 'for-linus' of master.kernel.org:/pub/scm/linux/kernel/git/mszeredi/fuse · 9a7e9f1c
      Linus Torvalds authored
      * 'for-linus' of master.kernel.org:/pub/scm/linux/kernel/git/mszeredi/fuse:
        [fuse] Direct I/O  should not use fuse_reset_request
        [fuse] Don't init request twice
        [fuse] Fix accounting the number of waiting requests
        [fuse] fix deadlock between fuse_put_super() and request_end()
      9a7e9f1c
    • Linus Torvalds's avatar
      Merge branch 'tee' of git://brick.kernel.dk/data/git/linux-2.6-block · 9ca68662
      Linus Torvalds authored
      * 'tee' of git://brick.kernel.dk/data/git/linux-2.6-block:
        [PATCH] splice: add support for sys_tee()
        [PATCH] splice: pass offset around for ->splice_read() and ->splice_write()
      9ca68662
    • Roland McGrath's avatar
      [PATCH] fix non-leader exec under ptrace · e57a5059
      Roland McGrath authored
      This reverts most of commit 30e0fca6.
      It broke the case of non-leader MT exec when ptraced.
      I think the bug it was intended to fix was already addressed by commit
      788e05a6.
      Signed-off-by: default avatarRoland McGrath <roland@redhat.com>
      Acked-by: default avatarOleg Nesterov <oleg@tv-sign.ru>
      Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
      e57a5059
    • Eric W. Biederman's avatar
      [PATCH] de_thread: Don't change our parents and ptrace flags. · c06511d1
      Eric W. Biederman authored
      This is two distinct changes.
       - Not changing our real parents.
       - Not changing our ptrace parents.
      
      Not changing our real parents is trivially correct because both tasks
      have the same real parents as they are part of a thread group.  Now that
      we demote the leader to a thread there is no longer any reason to change
      it's parentage.
      
      Not changing our ptrace parents is a user visible change if someone
      looks hard enough.  I don't think user space applications will care or
      even notice.
      
      In the practical and I think common case a debugger will have attached
      to all of the threads using the same ptrace flags.  From my quick skim
      of strace and gdb that appears to be the case.  Which if true means
      debuggers will not notice a change.
      
      Before this point we have already generated a ptrace event in do_exit
      that reports the leaders pid has died so de_thread is visible to a
      debugger.  Which means attempting to hide this case by copying flags
      around appears excessive.
      
      By not doing anything it avoids all of the weird locking issues between
      de_thread and ptrace attach, and removes one case from consideration for
      fixing the ptrace locking.
      
      This only addresses Oleg's first concern with ptrace_attach, that of the
      problems caused by reparenting.  Oleg's second concern is essentially a
      race between ptrace_attach and release_task that causes an oops when we
      get to force_sig_specific.  There is nothing special about de_thread
      with respect to that race.
      Signed-off-by: default avatarEric W. Biederman <ebiederm@xmission.com>
      Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
      c06511d1
    • Linus Torvalds's avatar
      Merge branch 'release' of git://git.kernel.org/pub/scm/linux/kernel/git/aegl/linux-2.6 · 0e5e24bf
      Linus Torvalds authored
      * 'release' of git://git.kernel.org/pub/scm/linux/kernel/git/aegl/linux-2.6:
        [IA64] Make show_mem() skip holes in a pgdat
        [IA64] ia64_wait_for_slaves() incorrectly reports MCA
      0e5e24bf
  2. 13 Apr, 2006 3 commits
  3. 12 Apr, 2006 25 commits