cifs: Change from mempool_destroy to mempool_exit for request pools

insmod followed by rmmod was oopsing with the new mempools cifs request patch

Fixes: edea94a697 ("cifs: Add mempools for cifs_io_request and cifs_io_subrequest structs")
Suggested-by: David Howells <dhowells@redhat.com>
Reviewed-by: Enzo Matsumiya <ematsumiya@suse.de>
Signed-off-by: Steve French <stfrench@microsoft.com>
This commit is contained in:
Steve French 2024-05-13 12:49:22 -05:00
parent 9f9bef9bc5
commit 29b4c7bb85

View File

@ -1790,9 +1790,9 @@ nomem_req:
static void cifs_destroy_netfs(void)
{
mempool_destroy(&cifs_io_subrequest_pool);
mempool_exit(&cifs_io_subrequest_pool);
kmem_cache_destroy(cifs_io_subrequest_cachep);
mempool_destroy(&cifs_io_request_pool);
mempool_exit(&cifs_io_request_pool);
kmem_cache_destroy(cifs_io_request_cachep);
}