Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 12 Nov 2016 18:57:38 +0000 (UTC)
From:      Alexander Motin <mav@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r308579 - head/sys/geom/multipath
Message-ID:  <201611121857.uACIvca7066402@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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)



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201611121857.uACIvca7066402>