aboutsummaryrefslogtreecommitdiff
path: root/sys/geom/raid
diff options
context:
space:
mode:
authorAlexander Motin <mav@FreeBSD.org>2015-03-27 12:44:28 +0000
committerAlexander Motin <mav@FreeBSD.org>2015-03-27 12:44:28 +0000
commit3ab0187add388d0895f0defd46e80d82a73a68fe (patch)
tree5d13c05d88f129bcb1231ec3f8398fdf8854f562 /sys/geom/raid
parent41fe4ba647f760b2d69d15499c98abb4d6624f7c (diff)
Notes
Diffstat (limited to 'sys/geom/raid')
-rw-r--r--sys/geom/raid/g_raid.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/geom/raid/g_raid.c b/sys/geom/raid/g_raid.c
index 546bd20729311..41566746dcfac 100644
--- a/sys/geom/raid/g_raid.c
+++ b/sys/geom/raid/g_raid.c
@@ -1132,7 +1132,7 @@ g_raid_start(struct bio *bp)
return;
}
mtx_lock(&sc->sc_queue_mtx);
- bioq_disksort(&sc->sc_queue, bp);
+ bioq_insert_tail(&sc->sc_queue, bp);
mtx_unlock(&sc->sc_queue_mtx);
if (!dumping) {
G_RAID_DEBUG1(4, sc, "Waking up %p.", sc);
@@ -1344,7 +1344,7 @@ g_raid_unlock_range(struct g_raid_volume *vol, off_t off, off_t len)
(intmax_t)(lp->l_offset+lp->l_length));
mtx_lock(&sc->sc_queue_mtx);
while ((bp = bioq_takefirst(&vol->v_locked)) != NULL)
- bioq_disksort(&sc->sc_queue, bp);
+ bioq_insert_tail(&sc->sc_queue, bp);
mtx_unlock(&sc->sc_queue_mtx);
free(lp, M_RAID);
return (0);
@@ -1438,7 +1438,7 @@ g_raid_disk_done(struct bio *bp)
sd = bp->bio_caller1;
sc = sd->sd_softc;
mtx_lock(&sc->sc_queue_mtx);
- bioq_disksort(&sc->sc_queue, bp);
+ bioq_insert_tail(&sc->sc_queue, bp);
mtx_unlock(&sc->sc_queue_mtx);
if (!dumping)
wakeup(sc);