mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2026-05-25 19:57:43 +03:00
Illumos 6414 - vdev_config_sync could be simpler
6414 vdev_config_sync could be simpler Reviewed by: George Wilson <george.wilson@delphix.com> Reviewed by: Matthew Ahrens <mahrens@delphix.com> Approved by: Robert Mustacchi <rm@joyent.com> References: https://www.illumos.org/issues/6414 https://github.com/illumos/illumos-gate/commit/eb5bb58 Ported-by: Brian Behlendorf <behlendorf1@llnl.gov> Signed-off-by: Chunwei Chen <tuxoko@gmail.com>
This commit is contained in:
+2
-8
@@ -6518,16 +6518,10 @@ spa_sync(spa_t *spa, uint64_t txg)
|
||||
if (svdcount == SPA_DVAS_PER_BP)
|
||||
break;
|
||||
}
|
||||
error = vdev_config_sync(svd, svdcount, txg, B_FALSE);
|
||||
if (error != 0)
|
||||
error = vdev_config_sync(svd, svdcount, txg,
|
||||
B_TRUE);
|
||||
error = vdev_config_sync(svd, svdcount, txg);
|
||||
} else {
|
||||
error = vdev_config_sync(rvd->vdev_child,
|
||||
rvd->vdev_children, txg, B_FALSE);
|
||||
if (error != 0)
|
||||
error = vdev_config_sync(rvd->vdev_child,
|
||||
rvd->vdev_children, txg, B_TRUE);
|
||||
rvd->vdev_children, txg);
|
||||
}
|
||||
|
||||
if (error == 0)
|
||||
|
||||
Reference in New Issue
Block a user