From be0b4029dbf3b54d9d9e11acec401e3bed74e740 Mon Sep 17 00:00:00 2001 From: Brian Behlendorf Date: Tue, 13 Jan 2009 16:02:19 -0800 Subject: [PATCH] Initialize list links --- module/zfs/vdev.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/module/zfs/vdev.c b/module/zfs/vdev.c index 16a27e514a..856a36e2b2 100644 --- a/module/zfs/vdev.c +++ b/module/zfs/vdev.c @@ -313,6 +313,8 @@ vdev_alloc_common(spa_t *spa, uint_t id, uint64_t guid, vdev_ops_t *ops) vd->vdev_ops = ops; vd->vdev_state = VDEV_STATE_CLOSED; + list_link_init(&vd->vdev_config_dirty_node); + list_link_init(&vd->vdev_state_dirty_node); mutex_init(&vd->vdev_dtl_lock, NULL, MUTEX_DEFAULT, NULL); mutex_init(&vd->vdev_stat_lock, NULL, MUTEX_DEFAULT, NULL); mutex_init(&vd->vdev_probe_lock, NULL, MUTEX_DEFAULT, NULL);