Max Gurtovoy 54d4e6ab91 block: centralize PI remapping logic to the block layer
Currently t10_pi_prepare/t10_pi_complete functions are called during the
NVMe and SCSi layers command preparetion/completion, but their actual
place should be the block layer since T10-PI is a general data integrity
feature that is used by block storage protocols. Introduce .prepare_fn
and .complete_fn callbacks within the integrity profile that each type
can implement according to its needs.

Suggested-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Suggested-by: Martin K. Petersen <martin.petersen@oracle.com>
Reviewed-by: Martin K. Petersen <martin.petersen@oracle.com>
Signed-off-by: Max Gurtovoy <maxg@mellanox.com>

Fixed to not call queue integrity functions if BLK_DEV_INTEGRITY
isn't defined in the config.

Signed-off-by: Jens Axboe <axboe@kernel.dk>
2019-09-17 20:03:49 -06:00
..
2019-09-17 16:54:40 -07:00
2019-09-17 16:57:47 -07:00
2019-09-16 15:52:38 -07:00
2019-09-16 15:56:22 -07:00
2019-09-16 15:48:14 -07:00
2019-08-28 22:26:47 +02:00
2019-09-16 15:52:38 -07:00
2019-08-27 09:43:59 +02:00
2019-08-16 11:33:56 -07:00
2019-07-09 08:59:39 -07:00
2019-08-16 08:59:33 -07:00
2019-07-11 18:11:21 -07:00
2019-07-11 15:14:01 -07:00
2019-08-27 10:47:01 -07:00
2019-09-16 15:52:38 -07:00
2019-09-16 14:31:40 -07:00
2019-07-15 20:44:49 -07:00
2019-07-01 15:04:59 +02:00
2019-09-16 19:59:10 -07:00
2019-07-17 11:44:41 -07:00
2019-08-14 20:46:38 +02:00
2019-09-16 15:52:38 -07:00
2019-09-16 15:48:14 -07:00
2019-09-16 15:48:14 -07:00
2019-09-16 15:52:38 -07:00
2019-08-16 11:33:56 -07:00