diff options
author | mav <mav@FreeBSD.org> | 2016-11-26 07:59:18 +0000 |
---|---|---|
committer | mav <mav@FreeBSD.org> | 2016-11-26 07:59:18 +0000 |
commit | fd688c4d2d81af9f5cfad6b84c4bc3b37c903fcf (patch) | |
tree | 9cb0867c5e7747b9cf91d6a8f4f4c740414b6529 /sys/geom | |
parent | 1985f47f08fb0b1f0a1cbf7b69ffebee66a42a10 (diff) | |
download | FreeBSD-src-fd688c4d2d81af9f5cfad6b84c4bc3b37c903fcf.zip FreeBSD-src-fd688c4d2d81af9f5cfad6b84c4bc3b37c903fcf.tar.gz |
MFC r308579: Do not report error on close even if we have no paths left.
Diffstat (limited to 'sys/geom')
-rw-r--r-- | sys/geom/multipath/g_multipath.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/geom/multipath/g_multipath.c b/sys/geom/multipath/g_multipath.c index 6644532..b461747 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) |