[dm-devel] [PATCH] bio-integrity: revert "stop abusing bi_end_io"

Martin K. Petersen martin.petersen at oracle.com
Sat Aug 5 20:25:47 UTC 2017


Mikulas,

> The sector number in the integrity tag must match the physical sector 
> number. So, it must be verified at the bottom.

The ref tag seed matches the submitter block number (typically block
layer sector for the top device) and is remapped to and from the LBA by
the SCSI disk driver or HBA firmware.

So the verification is designed to be done by the top level entity that
attaches the protection information to the bio. In this case
bio_integrity_prep().

-- 
Martin K. Petersen	Oracle Linux Engineering




More information about the dm-devel mailing list