mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-20 11:11:24 +00:00
Use bioq_takefirst()
This commit is contained in:
parent
1a31a6c3b2
commit
affa470653
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=134894
@ -619,9 +619,7 @@ md_kthread(void *arg)
|
||||
|
||||
for (;;) {
|
||||
mtx_lock(&sc->queue_mtx);
|
||||
bp = bioq_first(&sc->bio_queue);
|
||||
if (bp)
|
||||
bioq_remove(&sc->bio_queue, bp);
|
||||
bp = bioq_takefirst(&sc->bio_queue);
|
||||
if (!bp) {
|
||||
if (sc->flags & MD_SHUTDOWN) {
|
||||
mtx_unlock(&sc->queue_mtx);
|
||||
|
Loading…
Reference in New Issue
Block a user