Author: mav
Date: Sat Nov 26 07:59:57 2016
New Revision: 309186
URL: https://svnweb.freebsd.org/changeset/base/309186

Log:
  MFC r308579: Do not report error on close even if we have no paths left.

Modified:
  stable/10/sys/geom/multipath/g_multipath.c
Directory Properties:
  stable/10/   (props changed)

Modified: stable/10/sys/geom/multipath/g_multipath.c
==============================================================================
--- stable/10/sys/geom/multipath/g_multipath.c  Sat Nov 26 07:59:18 2016        
(r309185)
+++ stable/10/sys/geom/multipath/g_multipath.c  Sat Nov 26 07:59:57 2016        
(r309186)
@@ -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)
_______________________________________________
svn-src-stable-10@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-stable-10
To unsubscribe, send any mail to "svn-src-stable-10-unsubscr...@freebsd.org"

Reply via email to