Print this page
XXXX introduce drv_sectohz

Split Close
Expand all
Collapse all
          --- old/usr/src/uts/sun/io/dada/targets/dad.c
          +++ new/usr/src/uts/sun/io/dada/targets/dad.c
↓ open down ↓ 695 lines elided ↑ open up ↑
 696  696                  /*
 697  697                   * wait till current operation completed. If we are
 698  698                   * in the resource wait state (with an intr outstanding)
 699  699                   * then we need to wait till the intr completes and
 700  700                   * starts the next cmd. We wait for
 701  701                   * DCD_WAIT_CMDS_COMPLETE seconds before failing the
 702  702                   * DDI_SUSPEND.
 703  703                   */
 704  704                  wait_cmds_complete = ddi_get_lbolt();
 705  705                  wait_cmds_complete +=
 706      -                    DCD_WAIT_CMDS_COMPLETE * drv_usectohz(1000000);
      706 +                    drv_sectohz(DCD_WAIT_CMDS_COMPLETE);
 707  707  
 708  708                  while (un->un_ncmds) {
 709  709                          if (cv_timedwait(&un->un_disk_busy_cv,
 710  710                              DCD_MUTEX, wait_cmds_complete) == -1) {
 711  711                                  /*
 712  712                                   * commands Didn't finish in the
 713  713                                   * specified time, fail the DDI_SUSPEND.
 714  714                                   */
 715  715                                  DAD_DEBUG2(DCD_DEVINFO, dcd_label,
 716  716                                      DCD_DEBUG, "dcddetach: SUSPEND "
↓ open down ↓ 3997 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX