Use bioq_takefirst()
This commit is contained in:
parent
6720f62dc5
commit
36d79a570a
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user