On Wed, Feb 15, 2023 at 12:18:01PM -0500, Martin K. Petersen wrote: > 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. Looks good: Reviewed-by: Christoph Hellwig <hch@xxxxxx>