block: move ref_tag calculation func to the block layer
authorMax Gurtovoy <maxg@mellanox.com>
Sun, 29 Jul 2018 21:15:31 +0000 (00:15 +0300)
committerJens Axboe <axboe@kernel.dk>
Mon, 30 Jul 2018 14:27:01 +0000 (08:27 -0600)
commitddd0bc756983dc4d19000a4fe021b4c7f9d59aab
treec60de4ff47106f0c20b1f1beda9df7eedbdc8b86
parentc454edc21b12dd7d416de6c81555e87aaec9685c
block: move ref_tag calculation func to the block layer

Currently this function is implemented in the scsi layer, but it's
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.

Suggested-by: Christoph Hellwig <hch@lst.de>
Cc: Martin K. Petersen <martin.petersen@oracle.com>
Signed-off-by: Max Gurtovoy <maxg@mellanox.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
drivers/infiniband/ulp/iser/iser_memory.c
drivers/nvme/host/core.c
drivers/scsi/mpt3sas/mpt3sas_scsih.c
drivers/scsi/sd_dif.c
include/linux/t10-pi.h
include/scsi/scsi_cmnd.h