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-08-22 10:47:41 +02:00
2019-07-17 09:55:43 -07:00
2019-08-12 15:19:25 +02:00
2019-09-11 01:09:37 +01:00
2019-08-11 10:48:28 +02:00
2019-09-06 15:40:22 -07:00
2019-08-20 10:35:46 +01:00
2019-07-15 20:18:40 -07:00
2019-08-08 13:01:19 -07:00
2019-07-13 15:42:44 -07:00
2019-08-19 13:59:57 +02:00
2019-07-13 15:02:27 -07:00
2019-09-17 16:22:26 -07:00
2019-09-03 12:37:16 +01:00
2019-09-17 12:35:15 -07:00
2019-09-16 15:52:38 -07:00
2019-08-26 15:31:29 -04:00
2019-09-16 15:48:14 -07:00
2019-09-16 14:31:40 -07:00
2019-08-20 22:09:52 +02:00
2019-08-09 17:30:40 +02:00
2019-07-22 09:36:18 -07:00
2019-08-27 09:22:38 -06:00
2019-08-27 09:22:38 -06:00
2019-07-25 15:47:37 +02:00
2019-07-16 19:23:22 -07:00
2019-08-28 21:17:12 -06:00
2019-08-28 21:17:04 -06:00
2019-09-05 19:52:34 -06:00
2019-09-17 20:03:49 -06:00
2019-09-05 10:15:16 +02:00
2019-08-09 09:17:05 -07:00
2019-07-15 11:03:02 -03:00
2019-07-25 15:55:01 +02:00
2019-08-09 12:09:52 +02:00
2019-07-22 14:32:20 -07:00
2019-07-16 19:23:23 -07:00
2019-07-16 19:23:24 -07:00
2019-07-18 21:01:06 +02:00
2019-07-18 21:01:06 +02:00
2019-09-08 14:53:58 +02:00
2019-07-21 13:31:14 -07:00
2019-07-18 09:49:30 +02:00
2019-07-12 12:24:03 -07:00
2019-08-09 17:51:39 +01:00
2019-07-25 15:48:01 +02:00
2019-07-25 15:55:04 +02:00
2019-07-24 10:12:09 -07:00
2019-07-31 13:31:05 -06:00
2019-07-18 14:49:33 -07:00
2019-07-27 08:25:51 -07:00
2019-07-25 11:34:39 -07:00
2019-07-15 19:04:27 -07:00
2019-08-21 07:14:10 +09:00
2019-07-16 22:15:46 +02:00
2019-07-23 17:43:58 +02:00
2019-08-10 19:52:45 +02:00
2019-07-17 09:55:43 -07:00
2019-07-12 11:05:41 -07:00
2019-09-03 19:21:19 +02:00
2019-08-08 11:10:25 +03:00
2019-09-05 19:52:33 -06:00
2019-08-07 13:52:43 +01:00
2019-07-31 13:31:05 -06:00
2019-07-23 13:59:33 -07:00
2019-07-19 10:42:02 -07:00
2019-07-16 22:52:37 -04:00
2019-07-30 13:16:57 -06:00
2019-07-12 15:13:55 -07:00
2019-08-13 16:06:52 -07:00
2019-09-05 11:40:54 +02:00
2019-07-25 16:14:39 -03:00
2019-08-28 13:01:25 +02:00
2019-07-18 17:08:06 -07:00
2019-07-12 11:05:45 -07:00
2019-07-15 11:03:02 -03:00
2019-07-31 13:25:27 -06:00
2019-07-30 14:42:13 -07:00
2019-07-26 14:20:06 -07:00
2019-08-28 11:50:33 +02:00
2019-07-15 11:42:31 +02:00
2019-09-11 12:39:19 +02:00
2019-08-19 15:45:48 +02:00
2019-08-30 16:12:10 +02:00
2019-07-16 19:23:22 -07:00
2019-07-17 07:21:02 -07:00
2019-08-23 10:09:58 +02:00
2019-07-14 19:42:11 -07:00
2019-07-23 09:51:00 +02:00
2019-08-07 14:24:54 +01:00
2019-07-12 11:05:42 -07:00
2019-07-12 11:05:42 -07:00
2019-07-16 19:23:21 -07:00
2019-09-06 23:58:43 +02:00
2019-08-19 09:43:57 -07:00
2019-07-16 19:23:22 -07:00
2019-08-05 12:55:49 +02:00
2019-08-06 08:20:10 -06:00
2019-07-25 15:43:27 +02:00
2019-08-13 14:54:24 +08:00
2019-07-16 19:23:24 -07:00
2019-09-17 16:57:47 -07:00
2019-07-18 17:08:07 -07:00
2019-07-18 17:08:07 -07:00
2019-08-13 16:06:52 -07:00
2019-07-18 17:08:07 -07:00
2019-08-13 16:06:52 -07:00
2019-07-18 17:08:07 -07:00
2019-08-30 18:00:50 -07:00
2019-07-25 20:12:38 +03:00
2019-08-14 15:30:35 +02:00
2019-08-08 09:09:25 +02:00
2019-07-18 15:50:28 -04:00
2019-07-18 17:08:06 -07:00
2019-08-29 12:55:02 -07:00
2019-09-11 14:46:02 +01:00
2019-07-26 17:01:29 -06:00
2019-08-09 19:56:05 +02:00
2019-07-12 11:05:47 -07:00
2019-07-12 11:05:43 -07:00
2019-08-03 07:02:01 -07:00
2019-08-01 06:39:33 +02:00
2019-07-12 11:05:43 -07:00
2019-07-12 11:05:43 -07:00
2019-09-16 15:32:01 -07:00
2019-08-12 10:47:55 +02:00
2019-08-28 11:29:38 +02:00
2019-07-16 19:23:25 -07:00
2019-09-05 11:54:14 +02:00
2019-08-27 20:21:15 -07:00
2019-08-01 21:49:46 +02:00
2019-07-15 11:03:02 -03:00
2019-07-15 20:44:49 -07:00
2019-07-16 19:23:22 -07:00
2019-09-05 21:16:22 +02:00
2019-07-15 21:06:15 -07:00
2019-07-31 19:03:34 +02:00
2019-08-09 17:51:39 +01:00
2019-07-22 16:25:20 -07:00
2019-08-23 16:39:26 +01:00
2019-07-16 19:23:22 -07:00
2019-07-16 19:23:22 -07:00
2019-08-13 14:35:49 -07:00
2019-08-09 11:01:08 -07:00
2019-08-09 11:00:35 -07:00
2019-09-16 17:25:49 -07:00
2019-08-26 16:27:01 -07:00
2019-07-31 19:03:35 +02:00
2019-08-06 12:49:15 +02:00
2019-09-17 12:35:15 -07:00
2019-08-12 12:23:02 +01:00
2019-07-15 11:03:03 -03:00
2019-08-19 06:34:13 -05:00
2019-08-08 22:39:35 -07:00
2019-07-22 16:04:17 +02:00
2019-07-12 11:05:44 -07:00
2019-08-08 22:39:35 -07:00
2019-07-31 19:03:35 +02:00
2019-07-31 19:03:35 +02:00
2019-07-25 15:43:26 +02:00
2019-07-12 11:05:43 -07:00
2019-07-16 19:23:21 -07:00
2019-09-11 12:34:29 +02:00
2019-08-05 14:56:30 -07:00
2019-09-07 21:42:25 +02:00
2019-07-18 17:08:07 -07:00
2019-09-17 20:03:49 -06:00
2019-07-31 13:25:15 -06:00
2019-08-23 02:12:11 +02:00
2019-08-01 20:51:22 +02:00
2019-08-28 11:50:43 +02:00
2019-09-16 17:25:49 -07:00
2019-07-31 19:03:35 +02:00
2019-08-31 06:51:49 -04:00
2019-07-16 19:23:24 -07:00
2019-07-13 10:36:53 -07:00
2019-08-15 15:18:05 +02:00
2019-07-12 11:05:47 -07:00
2019-07-12 11:05:43 -07:00
2019-09-17 12:35:15 -07:00
2019-07-14 16:51:47 -07:00
2019-08-27 09:22:38 -06:00