aboutsummaryrefslogtreecommitdiffstats
path: root/module/zfs
diff options
context:
space:
mode:
authorMark Maybee <[email protected]>2022-01-12 17:15:30 -0700
committerGitHub <[email protected]>2022-01-12 16:15:30 -0800
commitda9c6c033388c19cf3a2b4c5a9ab4287cb831c9c (patch)
tree429965371e4d9560037b06803b3034c4552c842f /module/zfs
parent63f4bfd6ac486fc585c1df8f063586d26487bec6 (diff)
Remove VERIFY() in vdev_props_set_sync()
Reviewed-by: Allan Jude <[email protected]> Reviewed-by: Brian Behlendorf <[email protected]> Signed-off-by: Mark Maybee <[email protected]> Closes #12951
Diffstat (limited to 'module/zfs')
-rw-r--r--module/zfs/vdev.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/module/zfs/vdev.c b/module/zfs/vdev.c
index fc914b239..451d1b9a0 100644
--- a/module/zfs/vdev.c
+++ b/module/zfs/vdev.c
@@ -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);