Fixes qio irqsave lock
authorBarret Rhoden <brho@cs.berkeley.edu>
Wed, 22 Jan 2014 18:18:22 +0000 (10:18 -0800)
committerBarret Rhoden <brho@cs.berkeley.edu>
Wed, 22 Jan 2014 19:13:15 +0000 (11:13 -0800)
kern/src/ns/qio.c

index ff462eb..f937276 100644 (file)
@@ -800,7 +800,7 @@ qcopy(struct queue *q, int len, uint32_t offset)
 
 static void qinit_common(struct queue *q)
 {
-       spinlock_init(&q->lock);
+       spinlock_init_irqsave(&q->lock);
        qlock_init(&q->rlock);
        qlock_init(&q->wlock);
        rendez_init(&q->rr);