diff options
author | 2023-02-15 12:18:01 -0500 | |
---|---|---|
committer | 2023-02-16 11:05:41 -0700 | |
commit | b6a4bdcda430e3ca43bbb9cb1d4d4d34ebe15c40 (patch) | |
tree | a076570c9b18d688fc915bed8ca2b2844ba4e86f /scripts/generate_rust_analyzer.py | |
parent | block: Fix io statistics for cgroup in throttle path (diff) | |
download | linux-rng-b6a4bdcda430e3ca43bbb9cb1d4d4d34ebe15c40.tar.xz linux-rng-b6a4bdcda430e3ca43bbb9cb1d4d4d34ebe15c40.zip |
block: bio-integrity: Copy flags when bio_integrity_payload is cloned
Make sure to copy the flags when a bio_integrity_payload is cloned.
Otherwise per-I/O properties such as IP checksum flag will not be
passed down to the HBA driver. Since the integrity buffer is owned by
the original bio, the BIP_BLOCK_INTEGRITY flag needs to be masked off
to avoid a double free in the completion path.
Fixes: aae7df50190a ("block: Integrity checksum flag")
Fixes: b1f01388574c ("block: Relocate bio integrity flags")
Reported-by: Saurav Kashyap <skashyap@marvell.com>
Tested-by: Saurav Kashyap <skashyap@marvell.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Chaitanya Kulkarni <kch@nvidia.com>
Link: https://lore.kernel.org/r/20230215171801.21062-1-martin.petersen@oracle.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'scripts/generate_rust_analyzer.py')
0 files changed, 0 insertions, 0 deletions