]> git.proxmox.com Git - mirror_zfs.git/commit
Remove db_state DB_NOFILL checks from syncing context
authorAlexander Motin <mav@FreeBSD.org>
Mon, 8 Apr 2024 22:23:43 +0000 (18:23 -0400)
committerGitHub <noreply@github.com>
Mon, 8 Apr 2024 22:23:43 +0000 (15:23 -0700)
commitaa5445c28ba6199a15790459290bcd16cef4422d
treed1f5762af46b72da352dfb3b17224a0f3612fbdb
parent5e5fd0a1785aa65d5c2259f2d43459437ae209eb
Remove db_state DB_NOFILL checks from syncing context

Syncing context should not depend on current state of dbuf, which
could already change several times in later transaction groups,
but rely solely on dirty record for the transaction group being
synced. Some of the checks seem already impossible, while instead
of others I think we should better check for absence of data in
the specific dirty record rather than DB_NOFILL.

Reviewed-by: Robert Evans <evansr@google.com>
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Alexander Motin <mav@FreeBSD.org>
Sponsored by: iXsystems, Inc.
Closes #16057
module/zfs/dbuf.c