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_srq.c
          +++ new/usr/src/uts/common/io/ib/ibtl/ibtl_srq.c
↓ open down ↓ 50 lines elided ↑ open up ↑
  51   51  {
  52   52          ibt_status_t            status;
  53   53          ibt_srq_hdl_t           ibt_srq;
  54   54  
  55   55          IBTF_DPRINTF_L3(ibtf_srq, "ibt_alloc_srq(%p, %p)",
  56   56              hca_hdl, srq_sizes);
  57   57  
  58   58          ibt_srq = kmem_zalloc(sizeof (struct ibtl_srq_s), KM_SLEEP);
  59   59          *ibt_srq_p = ibt_srq;
  60   60  
  61      -        _NOTE(NOW_INVISIBLE_TO_OTHER_THREADS(ibt_srq->srq_ibc_srq_hdl))
  62      -        _NOTE(NOW_INVISIBLE_TO_OTHER_THREADS(ibt_srq->srq_hca))
  63   61          /*
  64   62           * Set the following values before creating CI SRQ, to avoid race
  65   63           * conditions on async callback.
  66   64           */
  67   65          ibt_srq->srq_hca = hca_hdl;
  68   66  
  69   67          status = IBTL_HCA2CIHCAOPS_P(hca_hdl)->ibc_alloc_srq(
  70   68              IBTL_HCA2CIHCA(hca_hdl), flags, ibt_srq, pd, srq_sizes,
  71   69              &ibt_srq->srq_ibc_srq_hdl, real_sizes_p);
  72   70  
  73   71          if (status != IBT_SUCCESS) {
  74   72                  IBTF_DPRINTF_L2(ibtf_srq, "ibt_alloc_srq: "
  75   73                      "CI SRQ handle allocation failed: status = %d", status);
  76   74                  kmem_free(ibt_srq, sizeof (struct ibtl_srq_s));
  77   75                  *ibt_srq_p = NULL;
  78   76                  return (status);
  79   77          }
  80   78  
  81      -        _NOTE(NOW_VISIBLE_TO_OTHER_THREADS(ibt_srq->srq_ibc_srq_hdl))
  82      -        _NOTE(NOW_VISIBLE_TO_OTHER_THREADS(ibt_srq->srq_hca))
  83      -
  84   79          /* Update the srq resource count */
  85   80          atomic_inc_32(&hca_hdl->ha_srq_cnt);
  86   81  
  87   82          return (IBT_SUCCESS);
  88   83  }
  89   84  
  90   85  
  91   86  /*
  92   87   * ibt_free_srq() - Free a shared receive queue
  93   88   *
↓ open down ↓ 48 lines elided ↑ open up ↑
 142  137  {
 143  138          IBTF_DPRINTF_L3(ibtf_srq, "ibt_modify_srq(%p, %d, %d, %d)",
 144  139              ibt_srq, flags, size, limit);
 145  140  
 146  141          return (IBTL_SRQ2CIHCAOPS_P(ibt_srq)->ibc_modify_srq(
 147  142              IBTL_SRQ2CIHCA(ibt_srq), ibt_srq->srq_ibc_srq_hdl,
 148  143              flags, size, limit, real_size_p));
 149  144  }
 150  145  
 151  146  
 152      -_NOTE(SCHEME_PROTECTS_DATA("client managed", ibtl_srq_s::srq_clnt_private))
 153      -
 154  147  /*
 155  148   * ibt_set_srq_private - Sets the private data on a given SRQ
 156  149   *
 157  150   *      ibt_srq          The ibt_srq_hdl_t of the allocated SRQ.
 158  151   *      clnt_private    The client private data.
 159  152   */
 160  153  void
 161  154  ibt_set_srq_private(ibt_srq_hdl_t ibt_srq, void *clnt_private)
 162  155  {
 163  156          ibt_srq->srq_clnt_private = clnt_private;
↓ open down ↓ 38 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX