Print this page
5253 kmem_alloc/kmem_zalloc won't fail with KM_SLEEP
5254 getrbuf won't fail with KM_SLEEP

*** 1481,1493 **** int rv; if (bd->d_ops.o_sync_cache == NULL) { return (ENOTSUP); } ! if ((bp = getrbuf(KM_SLEEP)) == NULL) { ! return (ENOMEM); ! } bp->b_resid = 0; bp->b_bcount = 0; xi = bd_xfer_alloc(bd, bp, bd->d_ops.o_sync_cache, KM_SLEEP); if (xi == NULL) { --- 1481,1491 ---- int rv; if (bd->d_ops.o_sync_cache == NULL) { return (ENOTSUP); } ! bp = getrbuf(KM_SLEEP); bp->b_resid = 0; bp->b_bcount = 0; xi = bd_xfer_alloc(bd, bp, bd->d_ops.o_sync_cache, KM_SLEEP); if (xi == NULL) {