Print this page
8368 remove warlock leftovers from usr/src/uts

Split Close
Expand all
Collapse all
          --- old/usr/src/uts/common/io/fibre-channel/ulp/fcsm.c
          +++ new/usr/src/uts/common/io/fibre-channel/ulp/fcsm.c
↓ open down ↓ 2618 lines elided ↑ open up ↑
2619 2619  }
2620 2620  
2621 2621  
2622 2622  /* Dedicated per port thread to process various commands */
2623 2623  static void
2624 2624  fcsm_job_thread(fcsm_t *fcsm)
2625 2625  {
2626 2626          fcsm_job_t      *job;
2627 2627  
2628 2628          ASSERT(fcsm != NULL);
2629      -#ifndef __lock_lint
2630 2629          CALLB_CPR_INIT(&fcsm->sm_cpr_info, &fcsm->sm_mutex,
2631 2630              callb_generic_cpr, "fcsm_job_thread");
2632      -#endif /* __lock_lint */
2633 2631  
2634 2632          for (;;) {
2635 2633                  mutex_enter(&fcsm->sm_mutex);
2636 2634  
2637 2635                  while (fcsm->sm_job_head == NULL ||
2638 2636                      fcsm->sm_flags & FCSM_SERIALIZE_JOBTHREAD) {
2639 2637                          CALLB_CPR_SAFE_BEGIN(&fcsm->sm_cpr_info);
2640 2638                          cv_wait(&fcsm->sm_job_cv, &fcsm->sm_mutex);
2641 2639                          CALLB_CPR_SAFE_END(&fcsm->sm_cpr_info, &fcsm->sm_mutex);
2642 2640                  }
↓ open down ↓ 31 lines elided ↑ open up ↑
2674 2672                          /*
2675 2673                           * There should not be any pending jobs, when this
2676 2674                           * is being called.
2677 2675                           */
2678 2676                          mutex_enter(&fcsm->sm_mutex);
2679 2677                          ASSERT(fcsm->sm_job_head == NULL);
2680 2678                          ASSERT(fcsm->sm_job_tail == NULL);
2681 2679                          ASSERT(fcsm->sm_retry_head == NULL);
2682 2680                          ASSERT(fcsm->sm_retry_tail == NULL);
2683 2681                          job->job_result = FC_SUCCESS;
2684      -#ifndef __lock_lint
2685 2682                          CALLB_CPR_EXIT(&fcsm->sm_cpr_info);
2686      -#endif
2687 2683                          /* CPR_EXIT has also dropped the fcsm->sm_mutex */
2688 2684  
2689 2685                          fcsm_jobdone(job);
2690 2686                          thread_exit();
2691 2687                          /* NOTREACHED */
2692 2688                          break;
2693 2689  
2694 2690                  case FCSM_JOB_LOGIN_NAME_SERVER:
2695 2691                          FCSM_DEBUG(SMDL_TRACE, (CE_CONT, SM_LOG, fcsm, NULL,
2696 2692                              "job_thread: job code <LOGIN_NAME_SERVER>"));
↓ open down ↓ 926 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX