]> git.baikalelectronics.ru Git - kernel.git/commit
NFS: restore module put when manager exits.
authorNeilBrown <neilb@suse.de>
Thu, 23 Jun 2022 04:47:34 +0000 (14:47 +1000)
committerAnna Schumaker <Anna.Schumaker@Netapp.com>
Thu, 30 Jun 2022 20:13:00 +0000 (16:13 -0400)
commit280283eb46b00c1d111c5b4c03d91b37df8d36a1
tree86377e4f860b83540958db476304d7e4c44037f0
parent4f64cb9d4742408196e508a683a5f394c26fe503
NFS: restore module put when manager exits.

Commit 46ef559223dd ("NFSD: Remove svc_serv_ops::svo_module") removed
calls to module_put_and_kthread_exit() from threads that acted as SUNRPC
servers and had a related svc_serv_ops structure.  This was correct.

It ALSO removed the module_put_and_kthread_exit() call from
nfs4_run_state_manager() which is NOT a SUNRPC service.

Consequently every time the NFSv4 state manager runs the module count
increments and won't be decremented.  So the nfsv4 module cannot be
unloaded.

So restore the module_put_and_kthread_exit() call.

Fixes: 46ef559223dd ("NFSD: Remove svc_serv_ops::svo_module")
Signed-off-by: NeilBrown <neilb@suse.de>
Signed-off-by: Anna Schumaker <Anna.Schumaker@Netapp.com>
fs/nfs/nfs4state.c