freebsd-skq/sys/rpc
kib d41bf48327 Add facility to stop all userspace processes. The supposed use of the
feature is to quisce the system before suspend.

Stop is implemented by reusing the thread_single(9) with the special
mode SINGLE_ALLPROC.  SINGLE_ALLPROC differs from the existing
single-threading modes by allowing (requiring) caller to operate on
other process.  Interruptible sleeps for !TDF_SBDRY threads are
suspended like SIGSTOP does it, instead of aborting the sleep, like
SINGLE_NO_EXIT, to avoid spurious EINTRs on resume.

Provide debugging sysctl debug.stop_all_proc, which causes total stop
and suspends syncer, while waiting for variable reset for resume.  It
is used for debugging; should be removed after the real use of the
interface is added.

In collaboration with:	pho
Discussed with:	avg
Sponsored by:	The FreeBSD Foundation
MFC after:	2 weeks
2014-12-13 16:18:29 +00:00
..
rpcsec_gss
auth_none.c
auth_unix.c
auth.h
authunix_prot.c
clnt_bck.c Merge the NFSv4.1 server code in projects/nfsv4.1-server over 2014-07-01 20:47:16 +00:00
clnt_dg.c Remove some unused static const strings under sys/rpc, which have never 2013-12-24 20:55:22 +00:00
clnt_rc.c
clnt_stat.h
clnt_vc.c In preparation of merging projects/sendfile, transform bare access to 2014-11-12 09:57:15 +00:00
clnt.h
getnetconfig.c
krpc.h Merge the NFSv4.1 server code in projects/nfsv4.1-server over 2014-07-01 20:47:16 +00:00
netconfig.h
nettype.h
pmap_prot.h
replay.c
replay.h
rpc_callmsg.c
rpc_com.h
rpc_generic.c
rpc_msg.h
rpc_prot.c
rpc.h
rpcb_clnt.c Move a static const variable to the #if 0 part where it is only used. 2013-12-24 20:57:26 +00:00
rpcb_clnt.h
rpcb_prot.c
rpcb_prot.h
rpcm_subs.h
rpcsec_gss.h
svc_auth_unix.c
svc_auth.c
svc_auth.h
svc_dg.c Rework NFS Duplicate Request Cache cleanup logic. 2014-01-03 15:09:59 +00:00
svc_generic.c Split RPC pool threads into number of smaller semi-isolated groups. 2014-06-08 11:19:32 +00:00
svc_vc.c In preparation of merging projects/sendfile, transform bare access to 2014-11-12 09:57:15 +00:00
svc.c Add facility to stop all userspace processes. The supposed use of the 2014-12-13 16:18:29 +00:00
svc.h Merge the NFSv4.1 server code in projects/nfsv4.1-server over 2014-07-01 20:47:16 +00:00
types.h
xdr.h