1. 19 4月, 2008 1 次提交
  2. 18 4月, 2008 1 次提交
  3. 25 1月, 2008 1 次提交
  4. 17 10月, 2007 3 次提交
    • S
      ieee1394: csr1212: proper refcounting · 17a19b79
      Stefan Richter 提交于
      At least since nodemgr got rid of coarse global locking, accesses to
      struct csr1212_keyval's reference counter should be atomic and coupled
      with proper barriers.  Also, calls to csr1212_keep_keyval(kv) should
      occur before kv is being used.
      
      (We probably should convert refcnt to struct kref, but how to keep
      csr1212_destroy_keyval's implementation non-recursively then?)
      Signed-off-by: NStefan Richter <stefanr@s5r6.in-berlin.de>
      17a19b79
    • S
      ieee1394: nodemgr: fix leak of struct csr1212_keyval · 638d5bb8
      Stefan Richter 提交于
      csr1212_keep_keyval(kv) in nodemgr_process_root_directory was
      unbalanced if ne->vendor_name_kv already exists.  This happens for
      example if eth1394 or raw1394 modify the local config ROM and it is
      parsed again.
      
      As a bonus, the attempt to add the vendor_name_kv sysfs attribute
      when it already exists is now fixed for good.
      Signed-off-by: NStefan Richter <stefanr@s5r6.in-berlin.de>
      638d5bb8
    • S
      ieee1394: Fix kthread stopping in nodemgr_host_thread · 69e2b602
      Satyam Sharma 提交于
      The nodemgr host thread can exit on its own even when kthread_should_stop
      is not true, on receiving a signal (might never happen in practice, as
      it ignores signals). But considering kthread_stop() must not be mixed with
      kthreads that can exit on their own, I think changing the code like this
      is clearer. This change means the thread can cut its sleep short when
      receive a signal but looking at the code around, that sounds okay (and
      again, it might never actually recieve a signal in practice).
      Signed-off-by: NSatyam Sharma <satyam@infradead.org>
      Signed-off-by: NStefan Richter <stefanr@s5r6.in-berlin.de>
      69e2b602
  5. 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
  6. 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
  7. 16 7月, 2007 1 次提交
  8. 10 7月, 2007 2 次提交
  9. 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
  10. 09 5月, 2007 1 次提交
  11. 30 4月, 2007 6 次提交
  12. 28 4月, 2007 2 次提交
  13. 17 2月, 2007 1 次提交
  14. 09 2月, 2007 2 次提交
  15. 08 12月, 2006 13 次提交
  16. 08 10月, 2006 1 次提交
  17. 18 9月, 2006 1 次提交