Commit 29b4c7bb authored by Steve French's avatar Steve French

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: edea94a6 ("cifs: Add mempools for cifs_io_request and cifs_io_subrequest structs")
Suggested-by: default avatarDavid Howells <dhowells@redhat.com>
Reviewed-by: default avatarEnzo Matsumiya <ematsumiya@suse.de>
Signed-off-by: default avatarSteve French <stfrench@microsoft.com>
parent 9f9bef9b
......@@ -1790,9 +1790,9 @@ static int cifs_init_netfs(void)
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);
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment