nvme: use blk API to remap ref tags for IOs with metadata
authorMax Gurtovoy <maxg@mellanox.com>
Sun, 29 Jul 2018 21:15:33 +0000 (00:15 +0300)
committerJens Axboe <axboe@kernel.dk>
Mon, 30 Jul 2018 14:27:04 +0000 (08:27 -0600)
commitf7f1fc363aab4601786d373569c1ae802ea593d0
treefbaf3b684a2bc832edf2a68e8ce4d983a23bfae6
parent10c41ddd61323b27b447bc8e18296ac6c06107ad
nvme: use blk API to remap ref tags for IOs with metadata

Also moved the logic of the remapping to the nvme core driver instead
of implementing it in the nvme pci driver. This way all the other nvme
transport drivers will benefit from it (in case they'll implement metadata
support).

Suggested-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Martin K. Petersen <martin.petersen@oracle.com>
Acked-by: Keith Busch <keith.busch@intel.com>
Signed-off-by: Max Gurtovoy <maxg@mellanox.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
drivers/nvme/host/core.c
drivers/nvme/host/nvme.h
drivers/nvme/host/pci.c