Date: Sat, 26 Nov 2016 07:59:57 +0000 (UTC) From: Alexander Motin <mav@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-10@freebsd.org Subject: svn commit: r309186 - stable/10/sys/geom/multipath Message-ID: <201611260759.uAQ7xvsP080589@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
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)
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201611260759.uAQ7xvsP080589>