mirror of
https://gitee.com/bianbu-linux/linux-6.6
synced 2025-04-24 14:07:52 -04:00
NFSD: Remove svc_serv_ops::svo_module
struct svc_serv_ops is about to be removed. Neil Brown says: > I suspect svo_module can go as well - I don't think the thread is > ever the thing that primarily keeps a module active. A random sample of kthread_create() callers shows sunrpc is the only one that manages module reference count in this way. Suggested-by: Neil Brown <neilb@suse.de> Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
This commit is contained in:
parent
c7d7ec8f04
commit
f49169c97f
7 changed files with 4 additions and 20 deletions
|
@ -184,8 +184,7 @@ lockd(void *vrqstp)
|
|||
dprintk("lockd_down: service stopped\n");
|
||||
|
||||
svc_exit_thread(rqstp);
|
||||
|
||||
module_put_and_kthread_exit(0);
|
||||
return 0;
|
||||
}
|
||||
|
||||
static int create_lockd_listener(struct svc_serv *serv, const char *name,
|
||||
|
@ -352,7 +351,6 @@ static struct notifier_block lockd_inet6addr_notifier = {
|
|||
|
||||
static const struct svc_serv_ops lockd_sv_ops = {
|
||||
.svo_function = lockd,
|
||||
.svo_module = THIS_MODULE,
|
||||
};
|
||||
|
||||
static int lockd_get(void)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue