Print this page
XXXX introduce drv_sectohz
*** 283,293 ****
while (!((sp->session_state ==
RDS_SESSION_STATE_FAILED) ||
(sp->session_state ==
RDS_SESSION_STATE_FINI))) {
rw_exit(&sp->session_lock);
! delay(drv_usectohz(1000000));
rw_enter(&sp->session_lock, RW_WRITER);
}
}
/* move the session to init state */
--- 283,293 ----
while (!((sp->session_state ==
RDS_SESSION_STATE_FAILED) ||
(sp->session_state ==
RDS_SESSION_STATE_FINI))) {
rw_exit(&sp->session_lock);
! delay(drv_sectohz(1));
rw_enter(&sp->session_lock, RW_WRITER);
}
}
/* move the session to init state */