HomeFreeBSD

Simplify log vdev removal code

Description

Simplify log vdev removal code

Get rid of the majority metaslab metadata when removing log vdevs
in spa_vdev_remove_log() with a call to metaslab_fini() instead
of duplicating a lot of that in vdev_remove_empty_log().

Reviewed-by: Matt Ahrens <mahrens@delphix.com>
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Serapheim Dimitropoulos <serapheim@delphix.com>
Closes #8347

Details

Provenance
Serapheim Dimitropoulos <serapheimd@gmail.com>Authored on Jan 31 2019, 5:17 PM
Brian Behlendorf <behlendorf1@llnl.gov>Committed on Jan 31 2019, 5:17 PM
Parents
rG7558997d2f80: vs_alloc can underflow in L2ARC vdevs
Branches
Unknown
Tags
Unknown

Event Timeline

Brian Behlendorf <behlendorf1@llnl.gov> committed rG6c926f426a26: Simplify log vdev removal code (authored by Serapheim Dimitropoulos <serapheimd@gmail.com>).Jan 31 2019, 5:17 PM