Use bioq_takefirst()

This commit is contained in:
phk 2004-10-23 12:44:19 +00:00
parent 6720f62dc5
commit 36d79a570a

View File

@ -115,9 +115,7 @@ sscstrategy(struct bio *bp)
sc->busy++;
while (1) {
bp = bioq_first(&sc->bio_queue);
if (bp)
bioq_remove(&sc->bio_queue, bp);
bp = bioq_takefirst(&sc->bio_queue);
splx(s);
if (!bp)
break;