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

*** 188,200 **** /* Global variables */ ibdm_t ibdm; int ibdm_taskq_enable = IBDM_ENABLE_TASKQ_HANDLING; char *ibdm_string = "ibdm"; - _NOTE(SCHEME_PROTECTS_DATA("Serialized access by cv", - ibdm.ibdm_dp_gidlist_head)) - /* * _init * Loadable module init, called before any other module. * Initialize mutex * Register with IBTF --- 188,197 ----
*** 2183,2195 **** &msg) != IBMF_SUCCESS) { IBTF_DPRINTF_L4("ibdm", "\tset_classportinfo: pkt alloc fail"); return (IBDM_FAILURE); } - _NOTE(NOW_INVISIBLE_TO_OTHER_THREADS(*msg)) ibdm_alloc_send_buffers(msg); - _NOTE(NOW_VISIBLE_TO_OTHER_THREADS(*msg)) msg->im_local_addr.ia_local_lid = gid_info->gl_slid; msg->im_local_addr.ia_remote_lid = gid_info->gl_dlid; msg->im_local_addr.ia_remote_qno = 1; msg->im_local_addr.ia_p_key = gid_info->gl_p_key; --- 2180,2190 ----
*** 2270,2282 **** &msg) != IBMF_SUCCESS) { IBTF_DPRINTF_L4("ibdm", "\tsend_classportinfo: pkt alloc fail"); return (IBDM_FAILURE); } - _NOTE(NOW_INVISIBLE_TO_OTHER_THREADS(*msg)) ibdm_alloc_send_buffers(msg); - _NOTE(NOW_VISIBLE_TO_OTHER_THREADS(*msg)) msg->im_local_addr.ia_local_lid = gid_info->gl_slid; msg->im_local_addr.ia_remote_lid = gid_info->gl_dlid; msg->im_local_addr.ia_remote_qno = 1; msg->im_local_addr.ia_p_key = gid_info->gl_p_key; --- 2265,2275 ----
*** 2453,2465 **** * Send IOUnitInfo request * Reuse previously allocated IBMF packet for sending ClassPortInfo * Check whether DM agent on the remote node requested redirection * If so, send the request to the redirect DGID/DLID/PKEY/QP. */ - _NOTE(NOW_INVISIBLE_TO_OTHER_THREADS(*msg)) ibdm_alloc_send_buffers(msg); - _NOTE(NOW_VISIBLE_TO_OTHER_THREADS(*msg)) msg->im_local_addr.ia_local_lid = gid_info->gl_slid; msg->im_local_addr.ia_remote_lid = gid_info->gl_dlid; if (gid_info->gl_redirected == B_TRUE) { if (gid_info->gl_redirect_dlid != 0) { --- 2446,2456 ----
*** 2534,2546 **** mutex_enter(&gid_info->gl_mutex); ibdm_bump_transactionID(gid_info); mutex_exit(&gid_info->gl_mutex); - _NOTE(NOW_INVISIBLE_TO_OTHER_THREADS(*msg)) ibdm_alloc_send_buffers(msg); - _NOTE(NOW_VISIBLE_TO_OTHER_THREADS(*msg)) msg->im_local_addr.ia_local_lid = gid_info->gl_slid; msg->im_local_addr.ia_remote_lid = gid_info->gl_dlid; msg->im_local_addr.ia_remote_qno = 1; msg->im_local_addr.ia_p_key = gid_info->gl_p_key; msg->im_local_addr.ia_q_key = IB_GSI_QKEY; --- 2525,2535 ----
*** 2753,2765 **** } } /* allocate send buffers for all messages */ - _NOTE(NOW_INVISIBLE_TO_OTHER_THREADS(*msg)) ibdm_alloc_send_buffers(msg); - _NOTE(NOW_VISIBLE_TO_OTHER_THREADS(*msg)) msg->im_local_addr.ia_local_lid = gid_info->gl_slid; msg->im_local_addr.ia_remote_lid = gid_info->gl_dlid; if (gid_info->gl_redirected == B_TRUE) { if (gid_info->gl_redirect_dlid != 0) { --- 2742,2752 ----
*** 2987,2999 **** &msg) != IBMF_SUCCESS) { continue; } } - _NOTE(NOW_INVISIBLE_TO_OTHER_THREADS(*msg)) ibdm_alloc_send_buffers(msg); - _NOTE(NOW_VISIBLE_TO_OTHER_THREADS(*msg)) msg->im_local_addr.ia_local_lid = gid_info->gl_slid; msg->im_local_addr.ia_remote_lid = gid_info->gl_dlid; if (gid_info->gl_redirected == B_TRUE) { if (gid_info->gl_redirect_dlid != 0) { msg->im_local_addr.ia_remote_lid = --- 2974,2984 ----
*** 3038,3050 **** } else { cb_args->cb_srvents_end = (cb_args->cb_srvents_start + nserv_entries - 1); nserv_entries = 0; } - _NOTE(NOW_INVISIBLE_TO_OTHER_THREADS(*hdr)) ibdm_fill_srv_attr_mod(hdr, cb_args); - _NOTE(NOW_INVISIBLE_TO_OTHER_THREADS(*hdr)) mutex_enter(&gid_info->gl_mutex); ioc_info->ioc_serv[srv_start].se_timeout_id = timeout( ibdm_pkt_timeout_hdlr, cb_args, IBDM_TIMEOUT_VALUE(ibdm_dft_timeout)); --- 3023,3033 ----
*** 3177,3189 **** &msg) != IBMF_SUCCESS) { IBTF_DPRINTF_L4("ibdm", "\tget_diagcode: pkt alloc fail"); return (IBDM_FAILURE); } - _NOTE(NOW_INVISIBLE_TO_OTHER_THREADS(*msg)) ibdm_alloc_send_buffers(msg); - _NOTE(NOW_VISIBLE_TO_OTHER_THREADS(*msg)) mutex_enter(&gid_info->gl_mutex); ibdm_bump_transactionID(gid_info); mutex_exit(&gid_info->gl_mutex); --- 3160,3170 ----
*** 3808,3818 **** gid_info->gl_redirect_dlid; } ibdm_bump_transactionID(gid_info); mutex_exit(&gid_info->gl_mutex); - _NOTE(NOW_INVISIBLE_TO_OTHER_THREADS(*msg, *hdr)) ibdm_alloc_send_buffers(msg); hdr = IBDM_OUT_IBMFMSG_MADHDR(msg); hdr->BaseVersion = MAD_CLASS_BASE_VERS_1; hdr->MgmtClass = MAD_MGMT_CLASS_DEV_MGT; --- 3789,3798 ----
*** 3822,3832 **** hdr->TransactionID = h2b64(gid_info->gl_transactionID); hdr->AttributeID = msg->im_msgbufs_recv.im_bufs_mad_hdr->AttributeID; hdr->AttributeModifier = msg->im_msgbufs_recv.im_bufs_mad_hdr->AttributeModifier; - _NOTE(NOW_VISIBLE_TO_OTHER_THREADS(*msg, *hdr)) msg->im_local_addr.ia_remote_qno = gid_info->gl_redirect_QP; msg->im_local_addr.ia_p_key = gid_info->gl_redirect_pkey; msg->im_local_addr.ia_q_key = gid_info->gl_redirect_qkey; msg->im_local_addr.ia_service_level = gid_info->gl_redirectSL; --- 3802,3811 ----
*** 4051,4063 **** cb_args->cb_req_type, cb_args->cb_ioc_num, cb_args->cb_srvents_start); return (IBDM_FAILURE); } - _NOTE(NOW_INVISIBLE_TO_OTHER_THREADS(*msg)) ibdm_alloc_send_buffers(msg); - _NOTE(NOW_VISIBLE_TO_OTHER_THREADS(*msg)) ibdm_bump_transactionID(gid_info); msg->im_local_addr.ia_local_lid = gid_info->gl_slid; msg->im_local_addr.ia_remote_lid = gid_info->gl_dlid; --- 4030,4040 ----
*** 4075,4085 **** msg->im_local_addr.ia_p_key = gid_info->gl_p_key; msg->im_local_addr.ia_q_key = IB_GSI_QKEY; msg->im_local_addr.ia_service_level = gid_info->gl_SL; } hdr = IBDM_OUT_IBMFMSG_MADHDR(msg); - _NOTE(NOW_INVISIBLE_TO_OTHER_THREADS(*hdr)) hdr->BaseVersion = MAD_CLASS_BASE_VERS_1; hdr->MgmtClass = MAD_MGMT_CLASS_DEV_MGT; hdr->ClassVersion = IB_DM_CLASS_VERSION_1; hdr->R_Method = IB_DM_DEVMGT_METHOD_GET; hdr->Status = 0; --- 4052,4061 ----
*** 4120,4130 **** ioc_no = cb_args->cb_ioc_num; ioc = &gid_info->gl_iou->iou_ioc_info[ioc_no]; timeout_id = &ioc->ioc_dc_timeout_id; break; } - _NOTE(NOW_VISIBLE_TO_OTHER_THREADS(*hdr)) *timeout_id = timeout(ibdm_pkt_timeout_hdlr, cb_args, IBDM_TIMEOUT_VALUE(ibdm_dft_timeout)); mutex_exit(&gid_info->gl_mutex); --- 4096,4105 ----
*** 5312,5322 **** */ static ibdm_ioc_info_t * ibdm_dup_ioc_info(ibdm_ioc_info_t *in_ioc, ibdm_dp_gidinfo_t *gid_list) { ibdm_ioc_info_t *out_ioc; - _NOTE(NOW_INVISIBLE_TO_OTHER_THREADS(*out_ioc)); ASSERT(MUTEX_HELD(&gid_list->gl_mutex)); out_ioc = kmem_alloc(sizeof (ibdm_ioc_info_t), KM_SLEEP); bcopy(in_ioc, out_ioc, sizeof (ibdm_ioc_info_t)); ibdm_update_ioc_port_gidlist(out_ioc, gid_list); --- 5287,5296 ----
*** 5495,5507 **** &msg) != IBMF_SUCCESS) { IBTF_DPRINTF_L2("ibdm", "\tsend_ioc_profile: pkt alloc fail"); return (IBDM_FAILURE); } - _NOTE(NOW_INVISIBLE_TO_OTHER_THREADS(*msg)) ibdm_alloc_send_buffers(msg); - _NOTE(NOW_VISIBLE_TO_OTHER_THREADS(*msg)) mutex_enter(&gid_info->gl_mutex); ibdm_bump_transactionID(gid_info); mutex_exit(&gid_info->gl_mutex); --- 5469,5479 ----
*** 5738,5749 **** ibdm_port_attr_t *hca_port; ibdm_dp_gidinfo_t *gid_info, *node_gid_info = NULL; sa_node_record_t *nrec; size_t length; - _NOTE(NOW_INVISIBLE_TO_OTHER_THREADS(*event_arg)); - hca_port = (ibdm_port_attr_t *)callback_arg; IBTF_DPRINTF_L4("ibdm", "\tsaa_event_cb(%x, %x, %x, %x)\n", ibmf_saa_handle, ibmf_saa_event, event_details, callback_arg); --- 5710,5719 ----
*** 6028,6039 **** ibdm_port_attr_t *hca_port, *port = NULL; ibdm_hca_list_t *hca_list = NULL; int sa_handle_valid = 0; ibdm_ioc_info_t *ioc_list = NULL; - _NOTE(NOW_INVISIBLE_TO_OTHER_THREADS(*event_arg)); - event_arg = (ibdm_saa_event_arg_t *)arg; ibmf_saa_handle = event_arg->ibmf_saa_handle; ibmf_saa_event = event_arg->ibmf_saa_event; event_details = &event_arg->event_details; callback_arg = event_arg->callback_arg; --- 5998,6007 ----