diff options
author | Martin K. Petersen <[email protected]> | 2022-02-03 22:42:09 -0500 |
---|---|---|
committer | Jens Axboe <[email protected]> | 2022-02-03 21:09:24 -0700 |
commit | b13e0c71856817fca67159b11abac350e41289f5 (patch) | |
tree | 111a17be7736a7b179a60ac898a72aee2213113d /scripts/gdb/linux/rbtree.py | |
parent | e8db8c9cadacab5694b0d1bd5f6b3ba6a234a34c (diff) |
block: bio-integrity: Advance seed correctly for larger interval sizes
Commit 309a62fa3a9e ("bio-integrity: bio_integrity_advance must update
integrity seed") added code to update the integrity seed value when
advancing a bio. However, it failed to take into account that the
integrity interval might be larger than the 512-byte block layer
sector size. This broke bio splitting on PI devices with 4KB logical
blocks.
The seed value should be advanced by bio_integrity_intervals() and not
the number of sectors.
Cc: Dmitry Monakhov <[email protected]>
Cc: [email protected]
Fixes: 309a62fa3a9e ("bio-integrity: bio_integrity_advance must update integrity seed")
Tested-by: Dmitry Ivanov <[email protected]>
Reported-by: Alexey Lyashkov <[email protected]>
Signed-off-by: Martin K. Petersen <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Jens Axboe <[email protected]>
Diffstat (limited to 'scripts/gdb/linux/rbtree.py')
0 files changed, 0 insertions, 0 deletions