diff options
| author | Alexander Motin <mav@FreeBSD.org> | 2015-04-09 13:09:05 +0000 |
|---|---|---|
| committer | Alexander Motin <mav@FreeBSD.org> | 2015-04-09 13:09:05 +0000 |
| commit | 0ada3afc253298c6dd80828b14dba1573e608941 (patch) | |
| tree | 92cfec1ca24ab35cbb70a7a57690f18851f4d602 /sys/geom/multipath | |
| parent | efb19cf6dbc7fe119072beac8fd27a579161efb3 (diff) | |
Notes
Diffstat (limited to 'sys/geom/multipath')
| -rw-r--r-- | sys/geom/multipath/g_multipath.c | 4 |
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); |
