diff options
author | Keith Busch <[email protected]> | 2024-09-13 11:28:48 -0700 |
---|---|---|
committer | Jens Axboe <[email protected]> | 2024-09-13 12:31:45 -0600 |
commit | d148d7503456556859c7e4d354115215d8fb5016 (patch) | |
tree | d6c05aa23c52744ca09030fe79dea01d6892a3d3 /drivers/fpga/fpga-bridge.c | |
parent | 9c297eced59817f461be33e4c241820c5be4bcc1 (diff) |
blk-integrity: properly account for segments
Both types of merging when integrity data is used are miscounting the
segments:
Merging two requests wasn't accounting for the new segment count, so add
the "next" segment count to the first on a successful merge to ensure
this value is accurate.
Merging a bio into an existing request was double counting the bio's
segments, even if the merge failed later on. Move the segment accounting
to the end when the merge is successful.
Reviewed-by: Christoph Hellwig <[email protected]>
Reviewed-by: Martin K. Petersen <[email protected]>
Signed-off-by: Keith Busch <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Jens Axboe <[email protected]>
Diffstat (limited to 'drivers/fpga/fpga-bridge.c')
0 files changed, 0 insertions, 0 deletions