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/io/mac/mac_protect.c
          +++ new/usr/src/uts/common/io/mac/mac_protect.c
↓ open down ↓ 1461 lines elided ↑ open up ↑
1462 1462          slaac_addr_t    *addr = NULL;
1463 1463          in6_addr_t      *token = &mcip->mci_v6_mac_token;
1464 1464  
1465 1465          ASSERT(MUTEX_HELD(&mcip->mci_protect_lock));
1466 1466  
1467 1467          if (avl_numnodes(&mcip->mci_v6_slaac_ip) >= slaac_max_allowed) {
1468 1468                  DTRACE_PROBE(limit__reached);
1469 1469                  return;
1470 1470          }
1471 1471  
1472      -        if ((addr = kmem_zalloc(sizeof (slaac_addr_t),
1473      -            KM_NOSLEEP | KM_NORMALPRI)) == NULL)
     1472 +        if ((addr = kmem_zalloc(sizeof (slaac_addr_t), KM_NOSLEEP_LAZY)) ==
     1473 +            NULL)
1474 1474                  return;
1475 1475  
1476 1476          bcopy(&po->nd_opt_pi_prefix, &addr->sla_prefix,
1477 1477              sizeof (struct in6_addr));
1478 1478  
1479 1479          if (!insert_slaac_ip(&mcip->mci_v6_slaac_ip, token, addr)) {
1480 1480                  kmem_free(addr, sizeof (slaac_addr_t));
1481 1481          }
1482 1482  }
1483 1483  
↓ open down ↓ 1134 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX