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

Split Close
Expand all
Collapse all
          --- old/usr/src/uts/common/io/ib/ibtl/ibtl_impl.c
          +++ new/usr/src/uts/common/io/ib/ibtl/ibtl_impl.c
↓ open down ↓ 81 lines elided ↑ open up ↑
  82   82  
  83   83  /* Well-known async handlers and associated client private. */
  84   84  ibt_async_handler_t ibtl_cm_async_handler;
  85   85  ibt_async_handler_t ibtl_dm_async_handler;
  86   86  ibt_async_handler_t ibtl_ibma_async_handler;
  87   87  void    *ibtl_cm_clnt_private;
  88   88  void    *ibtl_dm_clnt_private;
  89   89  void    *ibtl_ibma_clnt_private;
  90   90  
  91   91  extern int ib_hw_status;
  92      -_NOTE(SCHEME_PROTECTS_DATA("Scheme protects data", ib_hw_status))
  93   92  
  94   93  /*
  95   94   * Misc Module Declarations.
  96   95   */
  97   96  extern struct mod_ops mod_miscops;
  98   97  static struct modlmisc modlmisc = {
  99   98          &mod_miscops,                   /* Type of module - misc. */
 100   99          "IB Transport Layer"            /* Name of the Module. */
 101  100  };
 102  101  
↓ open down ↓ 196 lines elided ↑ open up ↑
 299  298                          mutex_exit(&ibtl_clnt_list_mutex);
 300  299                          return (IBT_INVALID_PARAM);
 301  300                  }
 302  301                  ibtl_ibma_async_handler = mod_infop->mi_async_handler;
 303  302                  ibtl_ibma_clnt_private = clnt_private;
 304  303          }
 305  304  
 306  305          /* Allocate the memory for per-client-device info structure */
 307  306          clntp = kmem_zalloc(sizeof (ibtl_clnt_t), KM_SLEEP);
 308  307  
 309      -        _NOTE(NOW_INVISIBLE_TO_OTHER_THREADS(clntp->clnt_modinfop,
 310      -            clntp->clnt_dip, clntp->clnt_name, clntp->clnt_async_cnt,
 311      -            clntp->clnt_private))
 312  308          /* Update the Client info structure */
 313  309          clntp->clnt_modinfop = mod_infop;       /* IBT Client's Mod Info */
 314  310          clntp->clnt_private = clnt_private;     /* IBT Client's private */
 315  311          clntp->clnt_dip = arg;                  /* IBT Client's dip */
 316  312          clntp->clnt_async_cnt = 0;
 317  313          /* using a count of 7 below guarantees it is NULL terminated */
 318  314          (void) strncpy(clntp->clnt_name, mod_infop->mi_clnt_name, 7);
 319      -        _NOTE(NOW_VISIBLE_TO_OTHER_THREADS(clntp->clnt_modinfop,
 320      -            clntp->clnt_dip, clntp->clnt_name, clntp->clnt_async_cnt,
 321      -            clntp->clnt_private))
 322  315  
 323  316          /*
 324  317           * Update Client Device Instance List.
 325  318           */
 326  319          clntp->clnt_list_link = ibtl_clnt_list;
 327  320          ibtl_clnt_list = clntp;
 328  321          mutex_exit(&ibtl_clnt_list_mutex);
 329  322  
 330  323          /*
 331  324           * The ibt_hdl_p is a opaque handle which is the address of
↓ open down ↓ 818 lines elided ↑ open up ↑
1150 1143   * Delete kstats on all ports of the HCA.
1151 1144   */
1152 1145  static void
1153 1146  ibtl_kstat_fini(ibtl_hca_devinfo_t *hca_devp)
1154 1147  {
1155 1148          ibtl_hca_port_kstat_t   *pks;
1156 1149          int                     i;
1157 1150  
1158 1151          IBTF_DPRINTF_L3(ibtf, "ibtl_kstat_fini(hca_devp = 0x%p)", hca_devp);
1159 1152  
1160      -        _NOTE(NOW_INVISIBLE_TO_OTHER_THREADS(*hca_devp))
1161      -
1162 1153          pks = hca_devp->hd_hca_port_ks_info;
1163      -        _NOTE(NOW_INVISIBLE_TO_OTHER_THREADS(*pks))
1164 1154  
1165 1155          if (pks == NULL)
1166 1156                  return;
1167 1157  
1168 1158          for (i = 0; i < hca_devp->hd_hca_attr->hca_nports; i++, pks++) {
1169 1159                  if (pks->pks_stats_ksp)
1170 1160                          kstat_delete(pks->pks_stats_ksp);
1171 1161  
1172 1162                  if (pks->pks_pkeys_ksp) {
1173 1163                          ASSERT(!MUTEX_HELD(&ibtl_clnt_list_mutex));
↓ open down ↓ 92 lines elided ↑ open up ↑
1266 1256  static int
1267 1257  ibtl_kstat_pkeys_update(kstat_t *ksp, int rw)
1268 1258  {
1269 1259          ibtl_hca_port_kstat_t   *pks;
1270 1260          ibtl_hca_devinfo_t      *hca_devp;
1271 1261          ibt_hca_portinfo_t      *p;
1272 1262  
1273 1263          IBTF_DPRINTF_L4(ibtf, "ibtl_kstat_pkeys_update(ksp = 0x%p, rw = %d)",
1274 1264              ksp, rw);
1275 1265  
1276      -#ifndef __lock_lint
1277 1266          ASSERT(MUTEX_HELD(&ibtl_clnt_list_mutex));
1278      -#endif
1279 1267  
1280 1268          if (rw == KSTAT_WRITE)
1281 1269                  return (EACCES);
1282 1270  
1283      -        _NOTE(NOW_INVISIBLE_TO_OTHER_THREADS(*ksp))
1284      -
1285 1271          pks = ksp->ks_private;
1286      -        _NOTE(NOW_INVISIBLE_TO_OTHER_THREADS(*pks))
1287      -
1288 1272          hca_devp = pks->pks_hca_devp;
1289      -        _NOTE(NOW_INVISIBLE_TO_OTHER_THREADS(*hca_devp))
1290 1273  
1291 1274          /*
1292 1275           * Point kstat data to the pkey table in the portinfo cache.
1293 1276           */
1294 1277  
1295 1278          p = hca_devp->hd_portinfop + pks->pks_port_num - 1;
1296 1279  
1297 1280          ksp->ks_data = p->p_pkey_tbl;
1298 1281          ksp->ks_ndata = p->p_pkey_tbl_sz;
1299 1282          ksp->ks_data_size = p->p_pkey_tbl_sz * sizeof (ib_pkey_t);
↓ open down ↓ 52 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX