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/fcp.c
          +++ new/usr/src/uts/common/io/fibre-channel/ulp/fcp.c
↓ open down ↓ 1044 lines elided ↑ open up ↑
1045 1045          0x1e, 0x1d, 0x1c, 0x00, 0x00, 0x1b, 0x1a, 0x00, 0x19, 0x00,
1046 1046          0x00, 0x00, 0x00, 0x00, 0x00, 0x18, 0x00, 0x17, 0x16, 0x15,
1047 1047          0x00, 0x14, 0x13, 0x12, 0x11, 0x10, 0x0f, 0x00, 0x00, 0x0e,
1048 1048          0x0d, 0x0c, 0x0b, 0x0a, 0x09, 0x00, 0x00, 0x08, 0x07, 0x00,
1049 1049          0x06, 0x00, 0x00, 0x00, 0x05, 0x04, 0x03, 0x00, 0x02, 0x00,
1050 1050          0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
1051 1051  };
1052 1052  
1053 1053  static caddr_t pid = "SESS01          ";
1054 1054  
1055      -#if     !defined(lint)
1056      -
1057      -_NOTE(MUTEX_PROTECTS_DATA(fcp_global_mutex,
1058      -    fcp_port::fcp_next fcp_watchdog_id))
1059      -
1060      -_NOTE(DATA_READABLE_WITHOUT_LOCK(fcp_watchdog_time))
1061      -
1062      -_NOTE(SCHEME_PROTECTS_DATA("Unshared",
1063      -    fcp_insert_eid
1064      -    fcp_remove_eid
1065      -    fcp_watchdog_time))
1066      -
1067      -_NOTE(SCHEME_PROTECTS_DATA("Unshared",
1068      -    fcp_cb_ops
1069      -    fcp_ops
1070      -    callb_cpr))
1071      -
1072      -#endif /* lint */
1073      -
1074 1055  /*
1075 1056   * This table is used to determine whether or not it's safe to copy in
1076 1057   * the target node name for a lun.  Since all luns behind the same target
1077 1058   * have the same wwnn, only tagets that do not support multiple luns are
1078 1059   * eligible to be enumerated under mpxio if they aren't page83 compliant.
1079 1060   */
1080 1061  
1081 1062  char *fcp_symmetric_disk_table[] = {
1082 1063          "SEAGATE ST",
1083 1064          "IBM     DDYFT",
↓ open down ↓ 8737 lines elided ↑ open up ↑
9821 9802                              "%s (%s%d) %s is enabled via %s.conf.",
9822 9803                              pathname,
9823 9804                              ddi_driver_name(pptr->port_dip),
9824 9805                              ddi_get_instance(pptr->port_dip),
9825 9806                              MANUAL_CFG_ONLY,
9826 9807                              ddi_driver_name(pptr->port_dip));
9827 9808                          fcp_enable_auto_configuration = 0;
9828 9809                          kmem_free(pathname, MAXPATHLEN);
9829 9810                  }
9830 9811          }
9831      -        _NOTE(NOW_INVISIBLE_TO_OTHER_THREADS(pptr->port_link_cnt));
9832 9812          pptr->port_link_cnt = 1;
9833      -        _NOTE(NOW_VISIBLE_TO_OTHER_THREADS(pptr->port_link_cnt));
9834 9813          pptr->port_id = s_id;
9835 9814          pptr->port_instance = instance;
9836      -        _NOTE(NOW_INVISIBLE_TO_OTHER_THREADS(pptr->port_state));
9837 9815          pptr->port_state = FCP_STATE_INIT;
9838 9816          if (pinfo->port_acc_attr == NULL) {
9839 9817                  /*
9840 9818                   * The corresponding FCA doesn't support DMA at all
9841 9819                   */
9842 9820                  pptr->port_state |= FCP_STATE_FCA_IS_NODMA;
9843 9821          }
9844 9822  
9845      -        _NOTE(NOW_VISIBLE_TO_OTHER_THREADS(pptr->port_state));
9846      -
9847 9823          if (!(pptr->port_state & FCP_STATE_FCA_IS_NODMA)) {
9848 9824                  /*
9849 9825                   * If FCA supports DMA in SCSI data phase, we need preallocate
9850 9826                   * dma cookie, so stash the cookie size
9851 9827                   */
9852 9828                  pptr->port_dmacookie_sz = sizeof (ddi_dma_cookie_t) *
9853 9829                      pptr->port_data_dma_attr.dma_attr_sgllen;
9854 9830          }
9855 9831  
9856 9832          /*
↓ open down ↓ 4372 lines elided ↑ open up ↑
14229 14205                  fpkt->pkt_tran_flags |= FC_TRAN_DUMPING;
14230 14206          }
14231 14207          mutex_exit(&pptr->port_mutex);
14232 14208  
14233 14209          fpkt->pkt_cmd_fhdr.d_id = ptgt->tgt_d_id;
14234 14210          fpkt->pkt_cmd_fhdr.s_id = pptr->port_id;
14235 14211  
14236 14212          /*
14237 14213           * Save a few kernel cycles here
14238 14214           */
14239      -#ifndef __lock_lint
14240 14215          fpkt->pkt_fca_device = ptgt->tgt_fca_dev;
14241      -#endif /* __lock_lint */
14242 14216  }
14243 14217  
14244 14218  static void
14245 14219  fcp_post_callback(struct fcp_pkt *cmd)
14246 14220  {
14247 14221          scsi_hba_pkt_comp(cmd->cmd_pkt);
14248 14222  }
14249 14223  
14250 14224  
14251 14225  /*
↓ open down ↓ 2104 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX