HomeFreeBSD

vfs: yield in vn_deallocate_impl() loop

Description

vfs: yield in vn_deallocate_impl() loop

Yield at the end of each loop iteration if there are remaining works as
indicated by the value of *len updated by VOP_DEALLOCATE. Without this,
when calling vop_stddeallocate to zero a large region, the
implementation only zerofills a relatively small chunk and returns.

Sponsored by: The FreeBSD Foundation
Reviewed by: kib
Differential Revision: https://reviews.freebsd.org/D31705

Details

Provenance
khngAuthored on Aug 29 2021, 8:26 AM
Reviewer
kib
Differential Revision
D31705: vfs: yield in vn_deallocate_impl() loop
Parents
rG005fe24f2a4c: libsa: Fix a typo in source code comments
Branches
Unknown
Tags
Unknown