diff options
| author | Poul-Henning Kamp <phk@FreeBSD.org> | 2004-09-07 07:54:45 +0000 |
|---|---|---|
| committer | Poul-Henning Kamp <phk@FreeBSD.org> | 2004-09-07 07:54:45 +0000 |
| commit | affa47065329ff7e79acd70fdbcf52eb93592a47 (patch) | |
| tree | 733c2f8be8e2e15bb4e229acf85269ad2c308690 /sys/dev/md | |
| parent | 1a31a6c3b2c1429af681c258d6938a8a023e5448 (diff) | |
Notes
Diffstat (limited to 'sys/dev/md')
| -rw-r--r-- | sys/dev/md/md.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/sys/dev/md/md.c b/sys/dev/md/md.c index 607c492dbc7a..e18dd10f5169 100644 --- a/sys/dev/md/md.c +++ b/sys/dev/md/md.c @@ -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); |
