diff options
author | Alexander Motin <mav@FreeBSD.org> | 2016-09-23 21:29:40 +0000 |
---|---|---|
committer | Alexander Motin <mav@FreeBSD.org> | 2016-09-23 21:29:40 +0000 |
commit | 8b64f3ca6c222808ef42281a2c49ae9eac59ac06 (patch) | |
tree | fc835903f7f9730a9081ebe10de96262e6b9870b /sys/geom/gate/g_gate.c | |
parent | aa93b99aa0417e407ab017923b6d102673409eb7 (diff) | |
download | src-8b64f3ca6c222808ef42281a2c49ae9eac59ac06.tar.gz src-8b64f3ca6c222808ef42281a2c49ae9eac59ac06.zip |
Use g_wither_provider() where applicable.
It is just a helper function combining G_PF_WITHER setting with
g_orphan_provider().
Notes
Notes:
svn path=/head/; revision=306279
Diffstat (limited to 'sys/geom/gate/g_gate.c')
-rw-r--r-- | sys/geom/gate/g_gate.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/sys/geom/gate/g_gate.c b/sys/geom/gate/g_gate.c index 8cfe9d4aaac0..767c6837d165 100644 --- a/sys/geom/gate/g_gate.c +++ b/sys/geom/gate/g_gate.c @@ -109,8 +109,7 @@ g_gate_destroy(struct g_gate_softc *sc, boolean_t force) wakeup(sc); mtx_unlock(&sc->sc_queue_mtx); gp = pp->geom; - pp->flags |= G_PF_WITHER; - g_orphan_provider(pp, ENXIO); + g_wither_provider(pp, ENXIO); callout_drain(&sc->sc_callout); bioq_init(&queue); mtx_lock(&sc->sc_queue_mtx); |