qio: Fix copyblock()
[akaros.git] / kern / src / net / pktmedium.c
index 07f19b3..30713d5 100644 (file)
@@ -85,7 +85,7 @@ pktbwrite(struct Ipifc *ifc, struct block *bp, int unused_int,
        bp = concatblock(bp);
        ptclcsum_finalize(bp, 0);
        if (atomic_read(&ifc->conv->snoopers) > 0)
-               qpass(ifc->conv->sq, copyblock(bp, BLEN(bp)));
+               qpass(ifc->conv->sq, copyblock(bp, MEM_WAIT));
        qpass(ifc->conv->rq, bp);
 }
 
@@ -98,7 +98,7 @@ static void pktin(struct Fs *f, struct Ipifc *ifc, struct block *bp)
                freeb(bp);
        else {
                if (atomic_read(&ifc->conv->snoopers) > 0)
-                       qpass(ifc->conv->sq, copyblock(bp, BLEN(bp)));
+                       qpass(ifc->conv->sq, copyblock(bp, MEM_WAIT));
                ipiput4(f, ifc, bp);
        }
 }