Remove VERIFY() in vdev_props_set_sync()

Reviewed-by: Allan Jude <allan@klarasystems.com>
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Mark Maybee <mark.maybee@delphix.com>
Closes #12951
This commit is contained in:
Mark Maybee 2022-01-12 17:15:30 -07:00 committed by GitHub
parent 63f4bfd6ac
commit da9c6c0333
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -5476,7 +5476,10 @@ vdev_props_set_sync(void *arg, dmu_tx_t *tx)
vdev_guid = fnvlist_lookup_uint64(nvp, ZPOOL_VDEV_PROPS_SET_VDEV);
nvprops = fnvlist_lookup_nvlist(nvp, ZPOOL_VDEV_PROPS_SET_PROPS);
vd = spa_lookup_by_guid(spa, vdev_guid, B_TRUE);
VERIFY(vd != NULL);
/* this vdev could get removed while waiting for this sync task */
if (vd == NULL)
return;
mutex_enter(&spa->spa_props_lock);