From: Steve French Date: Mon, 13 May 2024 17:49:22 +0000 (-0500) Subject: cifs: Change from mempool_destroy to mempool_exit for request pools X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=29b4c7bb8565118e2c7e08709fce0dbe8bf61011;p=linux.git 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: edea94a69730 ("cifs: Add mempools for cifs_io_request and cifs_io_subrequest structs") Suggested-by: David Howells Reviewed-by: Enzo Matsumiya Signed-off-by: Steve French --- diff --git a/fs/smb/client/cifsfs.c b/fs/smb/client/cifsfs.c index 6e1698614745b..ec5b639f421a2 100644 --- a/fs/smb/client/cifsfs.c +++ b/fs/smb/client/cifsfs.c @@ -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); }