Closed EchterAgo closed 7 months ago
This removes leaving the vnode_all_list_lock in the loop as that is not needed. It also only enters the v_mutex of nodes that are not VNODE_DEAD yet.
vnode_all_list_lock
v_mutex
VNODE_DEAD
This converts part of the loop to a new function called flush_file_objects to make it more readable.
flush_file_objects
This also removes the restart of the loop, which is safe because vnode_all_list_lock is never unlocked.
Oooops
This removes leaving the
vnode_all_list_lock
in the loop as that is not needed. It also only enters thev_mutex
of nodes that are notVNODE_DEAD
yet.This converts part of the loop to a new function called
flush_file_objects
to make it more readable.This also removes the restart of the loop, which is safe because
vnode_all_list_lock
is never unlocked.