linux/fs/lockd
NeilBrown b73a297204 lockd: move lockd_start_svc() call into lockd_create_svc()
lockd_start_svc() only needs to be called once, just after the svc is
created.  If the start fails, the svc is discarded too.

It thus makes sense to call lockd_start_svc() from lockd_create_svc().
This allows us to remove the test against nlmsvc_rqst at the start of
lockd_start_svc() - it must always be NULL.

lockd_up() only held an extra reference on the svc until a thread was
created - then it dropped it.  The thread - and thus the extra reference
- will remain until kthread_stop() is called.
Now that the thread is created in lockd_create_svc(), the extra
reference can be dropped there.  So the 'serv' variable is no longer
needed in lockd_up().

Signed-off-by: NeilBrown <neilb@suse.de>
Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
2021-12-13 13:42:55 -05:00
..
clnt4xdr.c
clntlock.c
clntproc.c SUNRPC: Trace calls to .rpc_call_done 2021-10-20 18:09:54 -04:00
clntxdr.c
host.c fs/lockd: convert comma to semicolon 2020-12-16 07:57:37 -05:00
Makefile
mon.c Replace HTTP links with HTTPS ones: NFS, SUNRPC, and LOCKD clients 2020-09-21 10:21:10 -04:00
netns.h
procfs.c proc: convert everything to "struct proc_ops" 2020-02-04 03:05:26 +00:00
procfs.h
svc.c lockd: move lockd_start_svc() call into lockd_create_svc() 2021-12-13 13:42:55 -05:00
svc4proc.c SUNRPC: Trace calls to .rpc_call_done 2021-10-20 18:09:54 -04:00
svclock.c lockd: don't attempt blocking locks on nfs reexports 2021-08-26 15:32:18 -04:00
svcproc.c SUNRPC: Trace calls to .rpc_call_done 2021-10-20 18:09:54 -04:00
svcshare.c
svcsubs.c Keep read and write fds with each nlm_file 2021-08-23 18:05:31 -04:00
svcxdr.h NLM: Fix svcxdr_encode_owner() 2021-09-17 10:35:10 -04:00
xdr.c SUNRPC: Change return value type of .pc_encode 2021-10-13 11:34:49 -04:00
xdr4.c SUNRPC: Change return value type of .pc_encode 2021-10-13 11:34:49 -04:00