Print this page
XXXX introduce drv_sectohz

Split Close
Expand all
Collapse all
          --- old/usr/src/uts/common/io/ib/clients/rdsv3/af_rds.c
          +++ new/usr/src/uts/common/io/ib/clients/rdsv3/af_rds.c
↓ open down ↓ 112 lines elided ↑ open up ↑
 113  113          rdsv3_rdma_drop_keys(rs);
 114  114          (void) rdsv3_notify_queue_get(rs, NULL);
 115  115  
 116  116          mutex_enter(&rdsv3_sock_lock);
 117  117          list_remove_node(&rs->rs_item);
 118  118          rdsv3_sock_count--;
 119  119          mutex_exit(&rdsv3_sock_lock);
 120  120  
 121  121          while (sk->sk_refcount > 1) {
 122  122                  /* wait for 1 sec and try again */
 123      -                delay(drv_usectohz(1000000));
      123 +                delay(drv_sectohz(1));
 124  124          }
 125  125  
 126  126          /* this will free the rs and sk */
 127  127          rdsv3_sk_sock_put(sk);
 128  128  
 129  129          RDSV3_DPRINTF4("rdsv3_release", "Return (rds: %p)", rs);
 130  130  out:
 131  131          return (0);
 132  132  }
 133  133  
↓ open down ↓ 905 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX