]> git.baikalelectronics.ru Git - kernel.git/commit
block: move dif_prepare/dif_complete functions to block layer
authorMax Gurtovoy <maxg@mellanox.com>
Sun, 29 Jul 2018 21:15:32 +0000 (00:15 +0300)
committerJens Axboe <axboe@kernel.dk>
Mon, 30 Jul 2018 14:27:02 +0000 (08:27 -0600)
commit3bce15183418d63a50d103794ad39134384ff710
tree116e298295cfafda21080e0c83b501862753fcf1
parent866be64d1545f49d90a021561a7da0d31166ba9a
block: move dif_prepare/dif_complete functions to block layer

Currently these functions are implemented in the scsi layer, but their
actual place should be the block layer since T10-PI is a general data
integrity feature that is used in the nvme protocol as well. Also, use
the tuple size from the integrity profile since it may vary between
integrity types.

Suggested-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Martin K. Petersen <martin.petersen@oracle.com>
Signed-off-by: Max Gurtovoy <maxg@mellanox.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/t10-pi.c
drivers/scsi/sd.c
drivers/scsi/sd.h
drivers/scsi/sd_dif.c
include/linux/t10-pi.h