Keith, > Make the integrity mapping more like data mapping, blk_rq_map_sg. Use > the request to validate the segment count, and update the callers so > they don't have to. Looks OK except for the phys vs. integrity snafu. It has been a constant source of problems that we haven't been able to have a common mapping function that works for both data and metadata. blk_rq_map_sg() and blk_rq_map_integrity_sg() always seem to get out of sync in peculiar ways. Reviewed-by: Martin K. Petersen <martin.petersen@xxxxxxxxxx> -- Martin K. Petersen Oracle Linux Engineering