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/fs/bootfs/bootfs_vfsops.c
          +++ new/usr/src/uts/common/fs/bootfs/bootfs_vfsops.c
↓ open down ↓ 85 lines elided ↑ open up ↑
  86   86          }
  87   87          mutex_exit(&mvp->v_lock);
  88   88  
  89   89          /*
  90   90           * We indicate that the backing store is bootfs. We don't want to use
  91   91           * swap, because folks might think that this is putting all the data
  92   92           * into memory ala tmpfs. Rather these modules are always in memory and
  93   93           * there's nothing to be done about that.
  94   94           */
  95   95          vfs_setresource(vfsp, bootfs_name, 0);
  96      -        bfs = kmem_zalloc(sizeof (bootfs_t), KM_NOSLEEP | KM_NORMALPRI);
       96 +        bfs = kmem_zalloc(sizeof (bootfs_t), KM_NOSLEEP_LAZY);
  97   97          if (bfs == NULL)
  98   98                  return (ENOMEM);
  99   99  
 100  100          ret = pn_get(uap->dir,
 101  101              (uap->flags & MS_SYSSPACE) ? UIO_SYSSPACE : UIO_USERSPACE, &dpn);
 102  102          if (ret != 0) {
 103  103                  kmem_free(bfs, sizeof (bfs));
 104  104                  return (ret);
 105  105          }
 106  106  
↓ open down ↓ 215 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX