aboutsummaryrefslogtreecommitdiffstats
path: root/module/zfs/vdev.c
diff options
context:
space:
mode:
authorPrakash Surya <[email protected]>2014-10-06 16:32:36 +0200
committerBrian Behlendorf <[email protected]>2014-11-14 15:37:45 -0800
commitfb42a4932886656a5e3a8a4cde6ea76ca7fbae7c (patch)
tree718251a3ccf09493aa3e80a35f129c75e30b2e4d /module/zfs/vdev.c
parenta82db4e15fcd882898595a40bba0d3b08548cd95 (diff)
Illumos 5213 - panic in metaslab_init due to space_map_open returning ENXIO
5213 panic in metaslab_init due to space_map_open returning ENXIO Reviewed by: Matthew Ahrens [email protected] Reviewed by: George Wilson [email protected] References: https://www.illumos.org/issues/5213 https://reviews.csiden.org/r/110 Porting notes: For the Linux port, KM_SLEEP was replaced with KM_PUSHPAGE. Ported by: Turbo Fredriksson <[email protected]> Signed-off-by: Brian Behlendorf <[email protected]> Closes #2745
Diffstat (limited to 'module/zfs/vdev.c')
-rw-r--r--module/zfs/vdev.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/module/zfs/vdev.c b/module/zfs/vdev.c
index 45315d3a1..37ce49297 100644
--- a/module/zfs/vdev.c
+++ b/module/zfs/vdev.c
@@ -876,7 +876,11 @@ vdev_metaslab_init(vdev_t *vd, uint64_t txg)
if (error)
return (error);
}
- vd->vdev_ms[m] = metaslab_init(vd->vdev_mg, m, object, txg);
+
+ error = metaslab_init(vd->vdev_mg, m, object, txg,
+ &(vd->vdev_ms[m]));
+ if (error)
+ return (error);
}
if (txg == 0)