summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorYichong Chen <chenyichong@uniontech.com>2026-07-22 10:54:35 +0800
committerDavid Sterba <dsterba@suse.com>2026-08-07 19:17:18 +0200
commit8cc569696dac51fc62bb39b3b8f530582b916d29 (patch)
tree33e874c3c8a2986a45f33d5b5459166cf79d8a1e /tools/perf/scripts/python
parentd34a3a8ba61e3b1f33e2fc8be963045bcfbbce79 (diff)
btrfs: retry verity reads for not-uptodate Merkle folios
btrfs_read_merkle_tree_page() can find a folio in the mapping that is not uptodate. After taking the folio lock, the current code treats that state as a read error and returns -EIO. That can make a previous transient read failure sticky. If the failed read left a not-uptodate folio in the mapping, later callers find that folio and fail instead of retrying the read. Keep the existing page-cache insertion and locking order, but retry the Merkle item read when a not-uptodate folio is found in the mapping. Also unlock the folio when read_key_bytes() fails so that a later caller can lock it and retry the read. Fixes: 06ed09351b67 ("btrfs: convert btrfs_read_merkle_tree_page() to use a folio") Reviewed-by: Boris Burkov <boris@bur.io> Signed-off-by: Yichong Chen <chenyichong@uniontech.com> Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions