nvme-pci: use nvme core helper to cancel requests in tagset
authorGuixin Liu <kanie@linux.alibaba.com>
Fri, 8 Jul 2022 03:04:37 +0000 (11:04 +0800)
committerJens Axboe <axboe@kernel.dk>
Tue, 2 Aug 2022 23:22:41 +0000 (17:22 -0600)
commit1fcfca78129325c067b1d26f8a1fa33ecc1052c8
tree9de4f5d8658d9ca6b28248fea1769935f0706e5c
parent53ee9e29377882f268a51b1aa8b06c80e7fce7a2
nvme-pci: use nvme core helper to cancel requests in tagset

Use nvme core helper nvme_cancel_tagset and nvme_cancel_admin_tagset
instead of same logic code.

Signed-off-by: Guixin Liu <kanie@linux.alibaba.com>
Reviewed-by: Sagi Grimberg <sagi@grimberg.me>
Reviewed-by: Ruozhu Li <liruozhu@huawei.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
drivers/nvme/host/pci.c