1. 17 10月, 2007 7 次提交
  2. 13 10月, 2007 1 次提交
    • K
      Driver core: change add_uevent_var to use a struct · 7eff2e7a
      Kay Sievers 提交于
      This changes the uevent buffer functions to use a struct instead of a
      long list of parameters. It does no longer require the caller to do the
      proper buffer termination and size accounting, which is currently wrong
      in some places. It fixes a known bug where parts of the uevent
      environment are overwritten because of wrong index calculations.
      
      Many thanks to Mathieu Desnoyers for finding bugs and improving the
      error handling.
      Signed-off-by: NKay Sievers <kay.sievers@vrfy.org>
      Cc: Mathieu Desnoyers <mathieu.desnoyers@polymtl.ca>
      Cc: Cornelia Huck <cornelia.huck@de.ibm.com>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
      
      7eff2e7a
  3. 11 10月, 2007 3 次提交
  4. 21 9月, 2007 1 次提交
    • S
      ieee1394: ohci1394: fix initialization if built non-modular · be7963b7
      Stefan Richter 提交于
      Initialization of ohci1394 was broken according to one reporter if the
      driver was statically linked, i.e. not built as loadable module.  Dmesg:
      
        PCI: Device 0000:02:07.0 not available because of resource collisions
        ohci1394: Failed to enable OHCI hardware.
      
      This was reported for a Toshiba Satellite 5100-503.  The cause is commit
      8df4083c in Linux 2.6.19-rc1 which only
      served purposes of early remote debugging via FireWire.  This
      functionality is better provided by the currently out-of-tree driver
      ohci1394_earlyinit.  Reversal of the commit was OK'd by Andi Kleen.
      Signed-off-by: NStefan Richter <stefanr@s5r6.in-berlin.de>
      be7963b7
  5. 26 8月, 2007 1 次提交
  6. 03 8月, 2007 2 次提交
  7. 27 7月, 2007 1 次提交
  8. 20 7月, 2007 1 次提交
    • P
      mm: Remove slab destructors from kmem_cache_create(). · 20c2df83
      Paul Mundt 提交于
      Slab destructors were no longer supported after Christoph's
      c59def9f change. They've been
      BUGs for both slab and slub, and slob never supported them
      either.
      
      This rips out support for the dtor pointer from kmem_cache_create()
      completely and fixes up every single callsite in the kernel (there were
      about 224, not including the slab allocator definitions themselves,
      or the documentation references).
      Signed-off-by: NPaul Mundt <lethal@linux-sh.org>
      20c2df83
  9. 18 7月, 2007 1 次提交
    • R
      Freezer: make kernel threads nonfreezable by default · 83144186
      Rafael J. Wysocki 提交于
      Currently, the freezer treats all tasks as freezable, except for the kernel
      threads that explicitly set the PF_NOFREEZE flag for themselves.  This
      approach is problematic, since it requires every kernel thread to either
      set PF_NOFREEZE explicitly, or call try_to_freeze(), even if it doesn't
      care for the freezing of tasks at all.
      
      It seems better to only require the kernel threads that want to or need to
      be frozen to use some freezer-related code and to remove any
      freezer-related code from the other (nonfreezable) kernel threads, which is
      done in this patch.
      
      The patch causes all kernel threads to be nonfreezable by default (ie.  to
      have PF_NOFREEZE set by default) and introduces the set_freezable()
      function that should be called by the freezable kernel threads in order to
      unset PF_NOFREEZE.  It also makes all of the currently freezable kernel
      threads call set_freezable(), so it shouldn't cause any (intentional)
      change of behaviour to appear.  Additionally, it updates documentation to
      describe the freezing of tasks more accurately.
      
      [akpm@linux-foundation.org: build fixes]
      Signed-off-by: NRafael J. Wysocki <rjw@sisk.pl>
      Acked-by: NNigel Cunningham <nigel@nigel.suspend2.net>
      Cc: Pavel Machek <pavel@ucw.cz>
      Cc: Oleg Nesterov <oleg@tv-sign.ru>
      Cc: Gautham R Shenoy <ego@in.ibm.com>
      Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
      83144186
  10. 16 7月, 2007 1 次提交
  11. 10 7月, 2007 13 次提交
  12. 16 6月, 2007 1 次提交
    • C
      ieee1394: fix to ether1394_tx in ether1394.c · 18b46179
      Carlos E. Ugarte 提交于
      This patch fixes a problem that occurs when packets cannot be sent across
      the ieee1394 bus and we return NETDEV_TX_BUSY in the net driver "hard start
      xmit" routine ether1394_tx. When we return NETDEV_TX_BUSY the stack will
      call ether1394_tx again with the same skb. So we need to restore the header
      to look like it did before we munged it for xmit over ieee1394.
      
      [Stefan Richter: changed whitespace, deleted a local variable]
      Signed-off-by: NStefan Richter <stefanr@s5r6.in-berlin.de>
      18b46179
  13. 01 6月, 2007 2 次提交
    • S
      ieee1394: sbp2: offer SAM-conforming target port ID in sysfs · d7794c86
      Stefan Richter 提交于
      With "modprobe sbp2 long_ieee1394_id=y", the format of
      /sys/bus/scsi/devices/*:*:*:*/ieee1394_id is changed from e.g.
      0001041010004beb:0:0 to 0001041010004beb:00042c:0000.
      
      The longer format fully conforms to object identifier sizes as per
      SAM(-2...4) and reflects what the SAM target port identifier is meant to
      contain:  A Discovery ID allegedly specified by ISO/IEC 13213:1994 ---
      however there is no such thing; the authors of SAM probably meant
      Directory ID).  Especially target nodes with multiple dynamically added
      targets may use Directory IDs to persistently identify target ports.
      
      The new format is independent of implementation details of nodemgr.
      Thus the same ieee1394_id attribute format can be implemented in the new
      firewire stack.
      
      The ieee1394_id is typically used to create persistently named links in
      /dev/disk/by-id.
      Signed-off-by: NStefan Richter <stefanr@s5r6.in-berlin.de>
      d7794c86
    • S
      ieee1394: fix calculation of sysfs attribute "address" · a52938f3
      Stefan Richter 提交于
      struct csr1212_keyval.offset is relative to 0xffff f000 0000 rather than
      0xffff f000 0400.
      Signed-off-by: NStefan Richter <stefanr@s5r6.in-berlin.de>
      a52938f3
  14. 28 5月, 2007 5 次提交