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

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
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -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);
}