Print this page
XXXX introduce drv_sectohz

Split Close
Expand all
Collapse all
          --- old/usr/src/uts/common/io/fibre-channel/impl/fctl.c
          +++ new/usr/src/uts/common/io/fibre-channel/impl/fctl.c
↓ open down ↓ 646 lines elided ↑ open up ↑
 647  647  
 648  648          mutex_enter(&fctl_ulp_list_mutex);
 649  649          new->ulp_info = ulp_info;
 650  650          if (fctl_ulp_list != NULL) {
 651  651                  new->ulp_next = fctl_ulp_list;
 652  652          }
 653  653          fctl_ulp_list = new;
 654  654          mutex_exit(&fctl_ulp_list_mutex);
 655  655  
 656  656          while (rw_tryenter(&fctl_ulp_lock, RW_WRITER) == 0) {
 657      -                delay(drv_usectohz(1000000));
      657 +                delay(drv_sectohz(1));
 658  658                  if (ntry++ > FC_ULP_ADD_RETRY_COUNT) {
 659  659                          fc_ulp_list_t   *list;
 660  660                          fc_ulp_list_t   *last;
 661  661                          mutex_enter(&fctl_ulp_list_mutex);
 662  662                          for (last = NULL, list = fctl_ulp_list; list != NULL;
 663  663                              list = list->ulp_next) {
 664  664                                  if (list->ulp_info == ulp_info) {
 665  665                                          break;
 666  666                                  }
 667  667                                  last = list;
↓ open down ↓ 6073 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX