1. 02 4月, 2009 1 次提交
    • A
      RDS: Rewrite connection cleanup, fixing oops on rmmod · 745cbcca
      Andy Grover 提交于
      This fixes a bug where a connection was unexpectedly
      not on *any* list while being destroyed. It also
      cleans up some code duplication and regularizes some
      function names.
      
      * Grab appropriate lock in conn_free() and explain in comment
      * Ensure via locking that a conn is never not on either
        a dev's list or the nodev list
      * Add rds_xx_remove_conn() to match rds_xx_add_conn()
      * Make rds_xx_add_conn() return void
      * Rename remove_{,nodev_}conns() to
        destroy_{,nodev_}conns() and unify their implementation
        in a helper function
      * Document lock ordering as nodev conn_lock before
        dev_conn_lock
      Reported-by: NYosef Etigin <yosefe@voltaire.com>
      Signed-off-by: NAndy Grover <andy.grover@oracle.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      745cbcca
  2. 27 2月, 2009 1 次提交
    • A
      RDS: Add iWARP support · fcd8b7c0
      Andy Grover 提交于
      Support for iWARP NICs is implemented as a separate
      RDS transport from IB. The code, however, is very
      similar to IB (it was forked, basically.) so let's keep
      it in one changeset.
      
      The reason for this duplicationis that despite its similarity
      to IB, there are a number of places where it has different
      semantics. iwarp zcopy support is still under development,
      and giving it its own sandbox ensures that IB code isn't
      disrupted while iwarp changes. Over time these transports
      will re-converge.
      Signed-off-by: NAndy Grover <andy.grover@oracle.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      fcd8b7c0