]> git.ipfire.org Git - thirdparty/linux.git/commit
nvme-tcp: remove nvme_tcp_destroy_io_queues()
authorChunguang.xu <chunguang.xu@shopee.com>
Tue, 3 Dec 2024 03:39:55 +0000 (11:39 +0800)
committerKeith Busch <kbusch@kernel.org>
Fri, 27 Dec 2024 21:33:48 +0000 (13:33 -0800)
commit36e3b1f9abe359b2bc25e81bc47b64354e42c9b1
tree6a06ecf304dddb75390d7d2199960c0a64dfc730
parent74d16965d7ac378d28ebd833ae6d6a097186a4ec
nvme-tcp: remove nvme_tcp_destroy_io_queues()

Now when destroying the IO queue we call nvme_tcp_stop_io_queues()
twice, nvme_tcp_destroy_io_queues() has an unnecessary call. Here we
try to remove nvme_tcp_destroy_io_queues() and merge it into
nvme_tcp_teardown_io_queues(), simplify the code and align with
nvme-rdma, make it easy to maintaince.

Signed-off-by: Chunguang.xu <chunguang.xu@shopee.com>
Reviewed-by: Sagi Grimberg <sagi@grimberg.me>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Keith Busch <kbusch@kernel.org>
drivers/nvme/host/tcp.c