aboutsummaryrefslogtreecommitdiff
path: root/libexec
diff options
context:
space:
mode:
authorWale Zhang <wale.zhang.ftd@gmail.com>2026-11-05 04:31:09 +0000
committerRyan Moeller <rmoeller@FreeBSD.org>2026-11-14 04:46:09 +0000
commitafc7fc2abe807780e6f9cba96ab73105ebd2a07f (patch)
treec88325d22b8fff4c6e52de4fdaad9b90cd7eb6a9 /libexec
parent78ca640f79c585ea737c03a0c427bfe53582fd30 (diff)
Fix direct reads of blocks pending free
Direct reads only check the on-disk block pointer for holes, so they can read stale data after a block has been freed but before the free has synced. Share buffered read hole detection with direct reads to honor pending frees as well. Keep cached data ahead of hole detection and preserve the transaction ordering of block clone and direct write overrides. Retain the block pointer recheck after dnode_block_freed() for concurrent syncing. Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov> Signed-off-by: Wale Zhang <wale.zhang.ftd@gmail.com> Closes #19633 Approved by: kevans (mentor) (cherry picked from commit 924b8c89c04e324649855b05986f686b58ca4cb9)
Diffstat (limited to 'libexec')
0 files changed, 0 insertions, 0 deletions