Print this page
XXXX introduce drv_sectohz

Split Close
Expand all
Collapse all
          --- old/usr/src/uts/common/io/ib/clients/rds/rdsib_cm.c
          +++ new/usr/src/uts/common/io/ib/clients/rds/rdsib_cm.c
↓ open down ↓ 277 lines elided ↑ open up ↑
 278  278                      (save_type == RDS_SESSION_PASSIVE)) {
 279  279                                  /*
 280  280                                   * The other thread is event_failure thread,
 281  281                                   * wait until it finishes.
 282  282                                   */
 283  283                                  while (!((sp->session_state ==
 284  284                                      RDS_SESSION_STATE_FAILED) ||
 285  285                                      (sp->session_state ==
 286  286                                      RDS_SESSION_STATE_FINI))) {
 287  287                                          rw_exit(&sp->session_lock);
 288      -                                        delay(drv_usectohz(1000000));
      288 +                                        delay(drv_sectohz(1));
 289  289                                          rw_enter(&sp->session_lock, RW_WRITER);
 290  290                                  }
 291  291                  }
 292  292  
 293  293                  /* move the session to init state */
 294  294                  if ((sp->session_state == RDS_SESSION_STATE_ERROR) ||
 295  295                      (sp->session_state == RDS_SESSION_STATE_PASSIVE_CLOSING)) {
 296  296                          ret = rds_session_reinit(sp, lgid);
 297  297                          sp->session_myip = ipcm_info.DSTIP;
 298  298                          sp->session_lgid = lgid;
↓ open down ↓ 669 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX