Print this page
XXXX introduce drv_sectohz
*** 1148,1158 ****
/*
* start the timeout threads
*/
fptr->fcip_timeout_id = timeout(fcip_timeout, fptr,
! drv_usectohz(1000000));
mutex_exit(&fptr->fcip_mutex);
mutex_enter(&fcip_global_mutex);
fcip_num_attaching--;
ASSERT(fcip_num_attaching >= 0);
--- 1148,1158 ----
/*
* start the timeout threads
*/
fptr->fcip_timeout_id = timeout(fcip_timeout, fptr,
! drv_sectohz(1));
mutex_exit(&fptr->fcip_mutex);
mutex_enter(&fcip_global_mutex);
fcip_num_attaching--;
ASSERT(fcip_num_attaching >= 0);
*** 1258,1268 ****
done:
/*
* Restart the timeout thread
*/
fptr->fcip_timeout_id = timeout(fcip_timeout, fptr,
! drv_usectohz(1000000));
mutex_exit(&fptr->fcip_mutex);
return (rval);
}
--- 1258,1268 ----
done:
/*
* Restart the timeout thread
*/
fptr->fcip_timeout_id = timeout(fcip_timeout, fptr,
! drv_sectohz(1));
mutex_exit(&fptr->fcip_mutex);
return (rval);
}
*** 7337,7347 ****
* reschedule the timeout thread
*/
mutex_enter(&fptr->fcip_mutex);
fptr->fcip_timeout_id = timeout(fcip_timeout, fptr,
! drv_usectohz(1000000));
fptr->fcip_flags &= ~(FCIP_IN_TIMEOUT);
mutex_exit(&fptr->fcip_mutex);
}
--- 7337,7347 ----
* reschedule the timeout thread
*/
mutex_enter(&fptr->fcip_mutex);
fptr->fcip_timeout_id = timeout(fcip_timeout, fptr,
! drv_sectohz(1));
fptr->fcip_flags &= ~(FCIP_IN_TIMEOUT);
mutex_exit(&fptr->fcip_mutex);
}