aboutsummaryrefslogtreecommitdiff
path: root/sys/geom/multipath
diff options
context:
space:
mode:
authorAlexander Motin <mav@FreeBSD.org>2015-04-09 13:09:05 +0000
committerAlexander Motin <mav@FreeBSD.org>2015-04-09 13:09:05 +0000
commit0ada3afc253298c6dd80828b14dba1573e608941 (patch)
tree92cfec1ca24ab35cbb70a7a57690f18851f4d602 /sys/geom/multipath
parentefb19cf6dbc7fe119072beac8fd27a579161efb3 (diff)
Notes
Diffstat (limited to 'sys/geom/multipath')
-rw-r--r--sys/geom/multipath/g_multipath.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/geom/multipath/g_multipath.c b/sys/geom/multipath/g_multipath.c
index 7593ccaa238a..0953d1881759 100644
--- a/sys/geom/multipath/g_multipath.c
+++ b/sys/geom/multipath/g_multipath.c
@@ -369,9 +369,9 @@ g_multipath_done(struct bio *bp)
mtx_lock(&sc->sc_mtx);
(*cnt)--;
if (*cnt == 0 && (cp->index & MP_LOST)) {
- cp->index |= MP_POSTED;
+ if (g_post_event(g_mpd, cp, M_NOWAIT, NULL) == 0)
+ cp->index |= MP_POSTED;
mtx_unlock(&sc->sc_mtx);
- g_post_event(g_mpd, cp, M_WAITOK, NULL);
} else
mtx_unlock(&sc->sc_mtx);
g_std_done(bp);