Print this page
5513 KM_NORMALPRI should be documented in kmem_alloc(9f) and kmem_cache_create(9f) man pages
14465 Present KM_NOSLEEP_LAZY as documented interface
Change-Id: I002ec28ddf390650f1fcba1ca94f6abfdb241439

Split Close
Expand all
Collapse all
          --- old/usr/src/uts/common/inet/ip/ip_attr.c
          +++ new/usr/src/uts/common/inet/ip/ip_attr.c
↓ open down ↓ 854 lines elided ↑ open up ↑
 855  855   * (since the pointers might be changed by another thread using
 856  856   * conn_ixa). The caller needs to check for NULL pointers to see
 857  857   * if ip_set_destination needs to be called to re-establish the pointers.
 858  858   */
 859  859  ip_xmit_attr_t *
 860  860  conn_get_ixa_exclusive(conn_t *connp)
 861  861  {
 862  862          ip_xmit_attr_t *oldixa;
 863  863          ip_xmit_attr_t *ixa;
 864  864  
 865      -        ixa = kmem_alloc(sizeof (*ixa), KM_NOSLEEP | KM_NORMALPRI);
      865 +        ixa = kmem_alloc(sizeof (*ixa), KM_NOSLEEP_LAZY);
 866  866          if (ixa == NULL)
 867  867                  return (NULL);
 868  868  
 869  869          mutex_enter(&connp->conn_lock);
 870  870  
 871  871          oldixa = connp->conn_ixa;
 872  872          IXA_REFHOLD(oldixa);
 873  873  
 874  874          ixa_safe_copy(oldixa, ixa);
 875  875          mutex_exit(&connp->conn_lock);
↓ open down ↓ 557 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX