Project

General

Profile

Bug #5154 ยป zfs-resilver-assert.patch

Steven Hartland, 2014-09-11 04:11 PM

View differences:

sys/cddl/contrib/opensolaris/uts/common/fs/zfs/vdev.c (working copy)
1951 1951

  
1952 1952
		/*
1953 1953
		 * If the vdev was resilvering and no longer has any
1954
		 * DTLs then reset its resilvering flag.
1954
		 * DTLs then reset its resilvering flag and dirty
1955
		 * the top level so that we persist the change.
1955 1956
		 */
1956 1957
		if (vd->vdev_resilver_txg != 0 &&
1957 1958
		    range_tree_space(vd->vdev_dtl[DTL_MISSING]) == 0 &&
1958
		    range_tree_space(vd->vdev_dtl[DTL_OUTAGE]) == 0)
1959
		    range_tree_space(vd->vdev_dtl[DTL_OUTAGE]) == 0) {
1959 1960
			vd->vdev_resilver_txg = 0;
1961
			vdev_config_dirty(vd->vdev_top);
1962
		}
1960 1963

  
1961 1964
		mutex_exit(&vd->vdev_dtl_lock);
1962 1965

  
    (1-1/1)