MCPcopy Create free account
hub / github.com/F-Stack/f-stack / vdev_state_clean

Function vdev_state_clean

freebsd/contrib/openzfs/module/zfs/vdev.c:4684–4695  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4682}
4683
4684void
4685vdev_state_clean(vdev_t *vd)
4686{
4687 spa_t *spa = vd->vdev_spa;
4688
4689 ASSERT(spa_config_held(spa, SCL_STATE, RW_WRITER) ||
4690 (dsl_pool_sync_context(spa_get_dsl(spa)) &&
4691 spa_config_held(spa, SCL_STATE, RW_READER)));
4692
4693 ASSERT(list_link_active(&vd->vdev_state_dirty_node));
4694 list_remove(&spa->spa_state_dirty_list, vd);
4695}
4696
4697/*
4698 * Propagate vdev state up from children to parent.

Callers 3

vdev_top_transferFunction · 0.85
spa_syncFunction · 0.85
spa_vdev_remove_logFunction · 0.85

Calls 5

spa_config_heldFunction · 0.85
dsl_pool_sync_contextFunction · 0.85
spa_get_dslFunction · 0.85
list_link_activeFunction · 0.50
list_removeFunction · 0.50

Tested by

no test coverage detected