aboutsummaryrefslogtreecommitdiffstats
path: root/module/zfs/vdev.c
diff options
context:
space:
mode:
Diffstat (limited to 'module/zfs/vdev.c')
-rw-r--r--module/zfs/vdev.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/module/zfs/vdev.c b/module/zfs/vdev.c
index 834cc1a48..52198261e 100644
--- a/module/zfs/vdev.c
+++ b/module/zfs/vdev.c
@@ -1906,12 +1906,6 @@ vdev_dtl_load(vdev_t *vd)
if (vd->vdev_ops->vdev_op_leaf && vd->vdev_dtl_object != 0) {
ASSERT(!vd->vdev_ishole);
- /*
- * If the dtl cannot be sync'd there is no need to open it.
- */
- if (!spa_writeable(spa))
- return (0);
-
error = space_map_open(&vd->vdev_dtl_sm, mos,
vd->vdev_dtl_object, 0, -1ULL, 0, &vd->vdev_dtl_lock);
if (error)