use bioq_takefirst()
This commit is contained in:
parent
36d79a570a
commit
5ff1936d8d
@ -670,17 +670,14 @@ wdustart(register struct softc *du)
|
||||
return;
|
||||
|
||||
|
||||
bp = bioq_first(&drive_queue[du->dk_lunit]);
|
||||
if (bp == NULL) { /* yes, an assign */
|
||||
bp = bioq_takefirst(&drive_queue[du->dk_lunit]);
|
||||
if (bp == NULL)
|
||||
return;
|
||||
}
|
||||
/*
|
||||
* store away which device we came from.
|
||||
*/
|
||||
bp->bio_driver1 = du;
|
||||
|
||||
bioq_remove(&drive_queue[du->dk_lunit], bp);
|
||||
|
||||
/* link onto controller queue */
|
||||
bioq_insert_tail(&wdtab[ctrlr].controller_queue, bp);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user