Skip to content

Commit

Permalink
Remove VERIFY() in vdev_props_set_sync()
Browse files Browse the repository at this point in the history
Reviewed-by: Allan Jude <[email protected]>
Reviewed-by: Brian Behlendorf <[email protected]>
Signed-off-by: Mark Maybee <[email protected]>
Closes openzfs#12951
  • Loading branch information
mmaybee authored and nicman23 committed Aug 22, 2022
1 parent 573c095 commit 60ae286
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion module/zfs/vdev.c
Original file line number Diff line number Diff line change
Expand Up @@ -5511,7 +5511,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);

Expand Down

0 comments on commit 60ae286

Please sign in to comment.