mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-05 18:41:58 +09:00
nvmet-tcp: fix nvme tcp ida memory leak
[ Upstream commit 47c5dd66c1840524572dcdd956f4af2bdb6fbdff ] The nvmet_tcp_queue_ida should be destroy when the nvmet-tcp module exit. Signed-off-by: Guixin Liu <kanie@linux.alibaba.com> Reviewed-by: Christoph Hellwig <hch@lst.de> Reviewed-by: Chaitanya Kulkarni <kch@nvidia.com> Signed-off-by: Keith Busch <kbusch@kernel.org> Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
13c1af5f3b
commit
fbd1cb2a9b
@@ -1884,6 +1884,7 @@ static void __exit nvmet_tcp_exit(void)
|
|||||||
flush_workqueue(nvmet_wq);
|
flush_workqueue(nvmet_wq);
|
||||||
|
|
||||||
destroy_workqueue(nvmet_tcp_wq);
|
destroy_workqueue(nvmet_tcp_wq);
|
||||||
|
ida_destroy(&nvmet_tcp_queue_ida);
|
||||||
}
|
}
|
||||||
|
|
||||||
module_init(nvmet_tcp_init);
|
module_init(nvmet_tcp_init);
|
||||||
|
|||||||
Reference in New Issue
Block a user