nvme-loop: use the tagset alloc/free helpers
authorChristoph Hellwig <hch@lst.de>
Tue, 20 Sep 2022 15:21:17 +0000 (17:21 +0200)
committerChristoph Hellwig <hch@lst.de>
Tue, 27 Sep 2022 12:44:17 +0000 (14:44 +0200)
commitceee1953f9239b699d80c5ef366712c3fd865cc2
treee16883e20453fd57b4b4f155d5d2ceadb692da8a
parent2ade82213b7a35c761273fe0c982f4ab8707f30a
nvme-loop: use the tagset alloc/free helpers

Use the common helpers to allocate and free the tagsets.  To make this
work the generic nvme_ctrl now needs to be stored in the hctx private
data instead of the nvme_loop_ctrl.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Sagi Grimberg <sagi@grimberg.me>
Reviewed-by: Chaitanya Kulkarni <kch@nvidia.com>
drivers/nvme/target/loop.c