aboutsummaryrefslogtreecommitdiff
path: root/sys/geom/gate/g_gate.c
diff options
context:
space:
mode:
authorAlexander Motin <mav@FreeBSD.org>2016-09-23 21:29:40 +0000
committerAlexander Motin <mav@FreeBSD.org>2016-09-23 21:29:40 +0000
commit8b64f3ca6c222808ef42281a2c49ae9eac59ac06 (patch)
treefc835903f7f9730a9081ebe10de96262e6b9870b /sys/geom/gate/g_gate.c
parentaa93b99aa0417e407ab017923b6d102673409eb7 (diff)
downloadsrc-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.c3
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);