Print this page
XXXX introduce drv_sectohz

*** 114,124 **** #define MDI_TASKQ_MAXALLOC (500*mdi_taskq_n_threads) taskq_t *mdi_taskq; static uint_t mdi_taskq_n_threads = MDI_TASKQ_N_THREADS; ! #define TICKS_PER_SECOND (drv_usectohz(1000000)) /* * The data should be "quiet" for this interval (in seconds) before the * vhci cached data is flushed to the disk. */ --- 114,124 ---- #define MDI_TASKQ_MAXALLOC (500*mdi_taskq_n_threads) taskq_t *mdi_taskq; static uint_t mdi_taskq_n_threads = MDI_TASKQ_N_THREADS; ! #define TICKS_PER_SECOND drv_sectohz(1) /* * The data should be "quiet" for this interval (in seconds) before the * vhci cached data is flushed to the disk. */
*** 3198,3208 **** MDI_DEBUG(1, (MDI_NOTE, ct->ct_dip, "!%d cmds still pending on path: %s %p", MDI_PI(pip)->pi_ref_cnt, mdi_pi_spathname(pip), (void *)pip)); if (cv_reltimedwait(&MDI_PI(pip)->pi_ref_cv, ! &MDI_PI(pip)->pi_mutex, drv_usectohz(60 * 1000000), TR_CLOCK_TICK) == -1) { /* * The timeout time reached without ref_cnt being zero * being signaled. */ --- 3198,3208 ---- MDI_DEBUG(1, (MDI_NOTE, ct->ct_dip, "!%d cmds still pending on path: %s %p", MDI_PI(pip)->pi_ref_cnt, mdi_pi_spathname(pip), (void *)pip)); if (cv_reltimedwait(&MDI_PI(pip)->pi_ref_cv, ! &MDI_PI(pip)->pi_mutex, drv_sectohz(60), TR_CLOCK_TICK) == -1) { /* * The timeout time reached without ref_cnt being zero * being signaled. */
*** 3864,3874 **** MDI_DEBUG(1, (MDI_NOTE, ct->ct_dip, "!%d cmds still pending on path %s %p", MDI_PI(pip)->pi_ref_cnt, mdi_pi_spathname(pip), (void *)pip)); if (cv_reltimedwait(&MDI_PI(pip)->pi_ref_cv, ! &MDI_PI(pip)->pi_mutex, drv_usectohz(60 * 1000000), TR_CLOCK_TICK) == -1) { /* * The timeout time reached without ref_cnt being zero * being signaled. */ --- 3864,3874 ---- MDI_DEBUG(1, (MDI_NOTE, ct->ct_dip, "!%d cmds still pending on path %s %p", MDI_PI(pip)->pi_ref_cnt, mdi_pi_spathname(pip), (void *)pip)); if (cv_reltimedwait(&MDI_PI(pip)->pi_ref_cv, ! &MDI_PI(pip)->pi_mutex, drv_sectohz(60), TR_CLOCK_TICK) == -1) { /* * The timeout time reached without ref_cnt being zero * being signaled. */