Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 21 Sep 2018 20:38:23 +0000 (UTC)
From:      Alexander Motin <mav@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-vendor@freebsd.org
Subject:   svn commit: r338866 - vendor-sys/illumos/dist/uts/common/fs/zfs
Message-ID:  <201809212038.w8LKcNam079995@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: mav
Date: Fri Sep 21 20:38:23 2018
New Revision: 338866
URL: https://svnweb.freebsd.org/changeset/base/338866

Log:
  9700 ZFS resilvered mirror does not balance reads
  
  illumos/illumos-gate@82f63c3c2bf5e4378706e8dcfccf717d67371be9
  
  Reviewed by: Toomas Soome <tsoome@me.com>
  Reviewed by: Sanjay Nadkarni <sanjay.nadkarni@nexenta.com>
  Reviewed by: George Wilson <george.wilson@delphix.com>
  Approved by: Matthew Ahrens <mahrens@delphix.com>
  Author:     Jerry Jelinek <jerry.jelinek@joyent.com>

Modified:
  vendor-sys/illumos/dist/uts/common/fs/zfs/spa.c

Modified: vendor-sys/illumos/dist/uts/common/fs/zfs/spa.c
==============================================================================
--- vendor-sys/illumos/dist/uts/common/fs/zfs/spa.c	Fri Sep 21 20:36:26 2018	(r338865)
+++ vendor-sys/illumos/dist/uts/common/fs/zfs/spa.c	Fri Sep 21 20:38:23 2018	(r338866)
@@ -27,7 +27,7 @@
  * Copyright 2013 Saso Kiselkov. All rights reserved.
  * Copyright (c) 2014 Integros [integros.com]
  * Copyright 2016 Toomas Soome <tsoome@me.com>
- * Copyright 2017 Joyent, Inc.
+ * Copyright 2018 Joyent, Inc.
  * Copyright (c) 2017 Datto Inc.
  * Copyright 2018 OmniOS Community Edition (OmniOSce) Association.
  */
@@ -6535,6 +6535,7 @@ spa_vdev_resilver_done_hunt(vdev_t *vd)
 
 	/*
 	 * Check for a completed resilver with the 'unspare' flag set.
+	 * Also potentially update faulted state.
 	 */
 	if (vd->vdev_ops == &vdev_spare_ops) {
 		vdev_t *first = vd->vdev_child[0];
@@ -6555,6 +6556,8 @@ spa_vdev_resilver_done_hunt(vdev_t *vd)
 		    vdev_dtl_empty(newvd, DTL_OUTAGE) &&
 		    !vdev_dtl_required(oldvd))
 			return (oldvd);
+
+		vdev_propagate_state(vd);
 
 		/*
 		 * If there are more than two spares attached to a disk,



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