diff options
author | Kent Overstreet <kent.overstreet@linux.dev> | 2025-03-24 11:51:01 -0400 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@linux.dev> | 2025-03-25 11:49:16 -0400 |
commit | 3ba0240a8789f8c059990b81c6f34c29769a5a49 (patch) | |
tree | 56cd7536228392bcc3bfc70916e24e9bb73e01eb /tools/perf/scripts/python/export-to-postgresql.py | |
parent | 5af61dbd96275e184adcfe615507b0f04ed7b328 (diff) |
bcachefs: Fix silent short reads in data read retry path
__bch2_read, before calling __bch2_read_extent(), sets bvec_iter.bi_size
to "the size we can read from the current extent" with a swap, and
restores it to "the size for the total read" after the read_extent call
with another swap.
But we neglected to do the restore before the "if (ret) goto err;" -
which is a problem if we're retrying those errors.
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions