Author: mav
Date: Sat Nov 12 18:57:38 2016
New Revision: 308579
URL: https://svnweb.freebsd.org/changeset/base/308579
Log:
Do not report error on close even if we have no paths left.
MFC after: 2 weeks
Modified:
head/sys/geom/multipath/g_multipath.c
Modified: head/sys/geom/multipath/g_multipath.c
==============================================================================
--- head/sys/geom/multipath/g_multipath.c Sat Nov 12 18:49:46 2016
(r308578)
+++ head/sys/geom/multipath/g_multipath.c Sat Nov 12 18:57:38 2016
(r308579)
@@ -470,7 +470,7 @@ g_multipath_access(struct g_provider *pp
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)
_______________________________________________
[email protected] mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "[email protected]"