HomeFreeBSD

Fix unfortunate NULL in spa_update_dspace

Description

Fix unfortunate NULL in spa_update_dspace

After 1325434b, we can in certain circumstances end up calling
spa_update_dspace with vd->vdev_mg NULL, which ends poorly during
vdev removal.

So let's not do that further space adjustment when we can't.

Reviewed-by: Matthew Ahrens <mahrens@delphix.com>
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Rich Ercolani <rincebrain@gmail.com>
Closes #12380
Closes #12428

Details

Provenance
rincebrain_gmail.comAuthored on Jul 26 2021, 5:51 PM
GitHub <noreply@github.com>Committed on Jul 26 2021, 5:51 PM
Parents
rG1b06b03a7be8: Linux 5.14 compat: blk_alloc_disk()
Branches
Unknown
Tags
Unknown