MFV r338866: 9700 ZFS resilvered mirror does not balance reads
illumos/illumos-gate@82f63c3c2b 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> Approved by: re (delphij)
This commit is contained in:
parent
4b176b0862
commit
f9be2a2d63
@ -28,7 +28,7 @@
|
|||||||
* Copyright 2013 Saso Kiselkov. All rights reserved.
|
* Copyright 2013 Saso Kiselkov. All rights reserved.
|
||||||
* Copyright (c) 2014 Integros [integros.com]
|
* Copyright (c) 2014 Integros [integros.com]
|
||||||
* Copyright 2016 Toomas Soome <tsoome@me.com>
|
* Copyright 2016 Toomas Soome <tsoome@me.com>
|
||||||
* Copyright 2017 Joyent, Inc.
|
* Copyright 2018 Joyent, Inc.
|
||||||
* Copyright (c) 2017 Datto Inc.
|
* Copyright (c) 2017 Datto Inc.
|
||||||
* Copyright 2018 OmniOS Community Edition (OmniOSce) Association.
|
* Copyright 2018 OmniOS Community Edition (OmniOSce) Association.
|
||||||
*/
|
*/
|
||||||
@ -6923,6 +6923,7 @@ spa_vdev_resilver_done_hunt(vdev_t *vd)
|
|||||||
|
|
||||||
/*
|
/*
|
||||||
* Check for a completed resilver with the 'unspare' flag set.
|
* Check for a completed resilver with the 'unspare' flag set.
|
||||||
|
* Also potentially update faulted state.
|
||||||
*/
|
*/
|
||||||
if (vd->vdev_ops == &vdev_spare_ops) {
|
if (vd->vdev_ops == &vdev_spare_ops) {
|
||||||
vdev_t *first = vd->vdev_child[0];
|
vdev_t *first = vd->vdev_child[0];
|
||||||
@ -6944,6 +6945,8 @@ spa_vdev_resilver_done_hunt(vdev_t *vd)
|
|||||||
!vdev_dtl_required(oldvd))
|
!vdev_dtl_required(oldvd))
|
||||||
return (oldvd);
|
return (oldvd);
|
||||||
|
|
||||||
|
vdev_propagate_state(vd);
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* If there are more than two spares attached to a disk,
|
* If there are more than two spares attached to a disk,
|
||||||
* and those spares are not required, then we want to
|
* and those spares are not required, then we want to
|
||||||
|
Loading…
Reference in New Issue
Block a user