Print this page
XXXX introduce drv_sectohz

Split Close
Expand all
Collapse all
          --- old/usr/src/uts/common/io/comstar/port/iscsit/iscsit_tgt.c
          +++ new/usr/src/uts/common/io/comstar/port/iscsit/iscsit_tgt.c
↓ open down ↓ 645 lines elided ↑ open up ↑
 646  646          /*
 647  647           * Rather than guaranteeing the target state machine code will not
 648  648           * block for long periods of time (tying up this callout thread)
 649  649           * we will queue a task on the taskq to send the retry event.
 650  650           * If it fails we'll setup another timeout and try again later.
 651  651           */
 652  652          if (taskq_dispatch(iscsit_global.global_dispatch_taskq,
 653  653              iscsit_tgt_dereg_task, tgt, DDI_NOSLEEP) == NULL) {
 654  654                  /* Dispatch failed, try again later */
 655  655                  (void) timeout(iscsit_tgt_dereg_retry, tgt,
 656      -                    drv_usectohz(TGT_DEREG_RETRY_SECONDS * 1000000));
      656 +                    drv_sectohz(TGT_DEREG_RETRY_SECONDS));
 657  657          }
 658  658  }
 659  659  
 660  660  static void
 661  661  iscsit_tgt_dereg_task(void *arg)
 662  662  {
 663  663          iscsit_tgt_t *tgt = arg;
 664  664  
 665  665          iscsit_tgt_sm_event(tgt, TE_STMF_DEREG_RETRY);
 666  666  }
↓ open down ↓ 1443 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX