aboutsummaryrefslogtreecommitdiff
path: root/sys/geom
diff options
context:
space:
mode:
authorAlexander Motin <mav@FreeBSD.org>2016-11-12 18:57:38 +0000
committerAlexander Motin <mav@FreeBSD.org>2016-11-12 18:57:38 +0000
commit80f0a89c6230bf0845df5a957956d37cb6d52e24 (patch)
tree8d8464507f01b1a4d235316035cc5b3927f8e480 /sys/geom
parentbfcd23a946eaa2ff5d38c94650051f4ef87764cd (diff)
downloadsrc-80f0a89c6230bf0845df5a957956d37cb6d52e24.tar.gz
src-80f0a89c6230bf0845df5a957956d37cb6d52e24.zip
Do not report error on close even if we have no paths left.
MFC after: 2 weeks
Notes
Notes: svn path=/head/; revision=308579
Diffstat (limited to 'sys/geom')
-rw-r--r--sys/geom/multipath/g_multipath.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/geom/multipath/g_multipath.c b/sys/geom/multipath/g_multipath.c
index 6644532d02e7..b461747bf356 100644
--- a/sys/geom/multipath/g_multipath.c
+++ b/sys/geom/multipath/g_multipath.c
@@ -470,7 +470,7 @@ g_multipath_access(struct g_provider *pp, int dr, int dw, int de)
gp = pp->geom;
/* Error used if we have no valid consumers. */
- error = ENXIO;
+ error = (dr > 0 || dw > 0 || de > 0) ? ENXIO : 0;
LIST_FOREACH(cp, &gp->consumer, consumer) {
if (cp->index & MP_WITHER)