1. 06 12月, 2008 6 次提交
  2. 02 12月, 2008 5 次提交
  3. 13 11月, 2008 4 次提交
    • Y
      IPoIB: Fix crash in path_rec_completion() · ff79ae80
      Yossi Etigin 提交于
      Fix a crash in path_rec_completion() during an SM up/down loop.  If
      more than one path record request is issued, the first completion
      releases path->done, allowing ipoib_flush_paths() to free the path,
      and thus corrupting it for the second completion.
      
      Commit ee1e2c82 ("IPoIB: Refresh paths instead of flushing them on SM
      change events") added the field path->valid and changed the test "if
      (!path)" to "if (!path || !path->valid)".  This change made it
      possible for a path with an outstanding query to pass the test and
      issue another query on the same path.  Having two queries on the same
      path leads to a crash.
      
      This fixes <https://bugs.openfabrics.org/show_bug.cgi?id=1325>.
      Signed-off-by: NYossi Etigin <yosefe@voltaire.com>
      Signed-off-by: NRoland Dreier <rolandd@cisco.com>
      ff79ae80
    • Y
      IPoIB: Fix hang in ipoib_flush_paths() · 93a3ab93
      Yossi Etigin 提交于
      ipoib_flush_paths() can hang during an SM up/down loop: if
      path_rec_start() fails (for instance, because there is no sm_ah), the
      path is still added to the path list by neigh_add_path().  Then,
      ipoib_flush_paths() will wait for path->done, but it will never
      complete because the request was not issued at all.  Fix this by
      completing path->done if issuing the query fails.
      
      This fixes <https://bugs.openfabrics.org/show_bug.cgi?id=1329>.
      Signed-off-by: NYossi Etigin <yosefe@voltaire.com>
      Signed-off-by: NRoland Dreier <rolandd@cisco.com>
      93a3ab93
    • Y
      IPoIB: Don't enable NAPI when it's already enabled · fe25c561
      Yossi Etigin 提交于
      If a P_Key is not present when an interface is created, ipoib_open()
      will return after doing napi_enable().  ipoib_open() will be called
      again from ipoib_pkey_poll() when the P_Key appears, after NAPI has
      already been enabled, and try to enable it again. This triggers a
      BUG_ON() in napi_enable().
      
      Fix this by moving the call to napi_enable() to after the test for
      P_Key presence.
      Signed-off-by: NYossi Etigin <yosefe@voltaire.com>
      Signed-off-by: NRoland Dreier <rolandd@cisco.com>
      fe25c561
    • S
      RDMA/cxgb3: Fix deadlock in iw_cxgb3 (hang when configuring interface) · b3e123cf
      Steve Wise 提交于
      When the iw_cxgb3 module's cxgb3_client "add" func gets called by the
      cxgb3 module, the iwarp driver ends up calling the ethtool ops
      get_drvinfo function in cxgb3 to get the fw version and other info.
      Currently the iwarp driver grabs the rtnl lock around this down call
      to serialize.  As of 2.6.27 or so, things changed such that the rtnl
      lock is held around the call to the netdev driver open function.  Also
      the cxgb3_client "add" function doesn't get called if the device is
      down.
      
      So, if you load cxgb3, then load iw_cxgb3, then ifconfig up the
      device, the iw_cxgb3 add func gets called with the rtnl_lock held.  If
      you load cxgb3, ifconfig up the device, then load iw_cxgb3, the add
      func gets called without the rtnl_lock held.  The former causes the
      deadlock, the latter does not.
      
      In addition, there are iw_cxgb3 sysfs handlers that also can call down
      into cxgb3 to gather the fw and hw versions.  These can be called
      concurrently on different processors and at any time.  Thus we need to
      push this serialization down in the cxgb3 driver get_drvinfo func.
      
      The fix is to remove rtnl lock usage, and use a per-device lock in cxgb3.
      Signed-off-by: NSteve Wise <swise@opengridcomputing.com>
      Acked-by: NDivy Le Ray <divy@chelsio.com>
      Signed-off-by: NRoland Dreier <rolandd@cisco.com>
      b3e123cf
  4. 12 11月, 2008 1 次提交
  5. 11 11月, 2008 1 次提交
    • S
      RDMA/cxgb3: deadlock in iw_cxgb3 can cause hang when configuring interface. · cf3760da
      Steve Wise 提交于
      When the iw_cxgb3 module's cxgb3_client "add" func gets called by the
      cxgb3 module, the iwarp driver ends up calling the ethtool ops get_drvinfo
      function in cxgb3 to get the fw version and other info.  Currently the
      iwarp driver grabs the rtnl lock around this down call to serialize.
      As of 2.6.27 or so, things changed such that the rtnl lock is held around
      the call to the netdev driver open function.  Also the cxgb3_client "add"
      function doesn't get called if the device is down.
      
      So, if you load cxgb3, then load iw_cxgb3, then ifconfig up the device,
      the iw_cxgb3 add func gets called with the rtnl_lock held.   If you
      load cxgb3, ifconfig up the device, then load iw_cxgb3, the add func
      gets called without the rtnl_lock held.  The former causes the deadlock,
      the latter does not.
      
      In addition, there are iw_cxgb3 sysfs handlers that also can call
      down into cxgb3 to gather the fw and hw versions.  These can be called
      concurrently on different processors and at any time.  Thus we need to
      push this serialization down in the cxgb3 driver get_drvinfo func.
      
      The fix is to remove rtnl lock usage, and use a per-device lock in cxgb3.
      Signed-off-by: NSteve Wise <swise@opengridcomputing.com>
      Signed-off-by: NJeff Garzik <jgarzik@redhat.com>
      cf3760da
  6. 06 11月, 2008 1 次提交
  7. 03 11月, 2008 4 次提交
  8. 02 11月, 2008 2 次提交
  9. 28 10月, 2008 1 次提交
  10. 23 10月, 2008 5 次提交
  11. 20 10月, 2008 1 次提交
    • P
      x86: sysfs: kill owner field from attribute · 01e8ef11
      Parag Warudkar 提交于
      Tejun's commit 7b595756 made sysfs
      attribute->owner unnecessary.  But the field was left in the structure to
      ease the merge.  It's been over a year since that change and it is now
      time to start killing attribute->owner along with its users - one arch at
      a time!
      
      This patch is attempt #1 to get rid of attribute->owner only for
      CONFIG_X86_64 or CONFIG_X86_32 .  We will deal with other arches later on
      as and when possible - avr32 will be the next since that is something I
      can test.  Compile (make allyesconfig / make allmodconfig / custom config)
      and boot tested.
      
      akpm: the idea is that we put the declaration of sttribute.owner inside
      `#ifndef CONFIG_X86'.  But that proved to be too ambitious for now because
      new usages kept on turning up in subsystem trees.
      
      [akpm: remove the ifdef for now]
      Signed-off-by: NParag Warudkar <parag.lkml@gmail.com>
      Cc: Greg KH <greg@kroah.com>
      Cc: Ingo Molnar <mingo@elte.hu>
      Cc: Tejun Heo <htejun@gmail.com>
      Cc: Len Brown <lenb@kernel.org>
      Cc: Jens Axboe <jens.axboe@oracle.com>
      Cc: Jean Delvare <khali@linux-fr.org>
      Cc: Roland Dreier <rolandd@cisco.com>
      Cc: David Brownell <david-b@pacbell.net>
      Cc: Alessandro Zummo <a.zummo@towertech.it>
      Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
      01e8ef11
  12. 17 10月, 2008 1 次提交
  13. 16 10月, 2008 1 次提交
  14. 15 10月, 2008 1 次提交
  15. 14 10月, 2008 1 次提交
  16. 13 10月, 2008 2 次提交
  17. 11 10月, 2008 3 次提交