Use bioq_takefirst()

This commit is contained in:
Poul-Henning Kamp 2004-10-23 12:44:19 +00:00
parent 091aa0964b
commit 32204b9721

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;