svn commit: r309186 - stable/10/sys/geom/multipath

Alexander Motin mav at FreeBSD.org
Sat Nov 26 07:59:58 UTC 2016


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)


More information about the svn-src-all mailing list