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
Tony Hutter <hutter2@llnl.gov>Committed on Sep 14 2021, 7:41 PM
Parents
rG2f073cc9c670: Linux 5.14 compat: blk_alloc_disk()
Branches
Unknown
Tags
Unknown