freebsd-dev/sys/rpc
Rick Macklem 82512c17ea clnt_vc.c: Replace msleep() with pause() to avoid assert panic
An msleep() in clnt_vc.c used a global "fake_wchan" wchan argument
along with the mutex in a CLIENT structure.  As such, it was
possible to use different mutexes for the same wchan and
cause a panic assert.  Since this is in a rarely executed code
path, the assert panic was only recently observed.

Since "fake_wchan" never gets a wakeup, this msleep() can
be replaced with a pause() to avoid the panic assert,
which is what this patch does.

Reviewed by:	kib, markj
MFC after:	3 days
Differential Revision:	https://reviews.freebsd.org/D36977
2022-10-14 15:46:55 -07:00
..
rpcsec_gss sys/rpc: Use C99 fixed-width integer types. 2021-12-28 09:43:15 -08:00
rpcsec_tls nfsd: Allow multiple instances of rpc.tlsservd 2022-08-22 13:54:24 -07:00
auth_none.c Adjust authnone_create() definition to avoid clang 15 warning 2022-07-25 00:40:13 +02:00
auth_unix.c rpc: Make function tables const 2021-08-14 11:26:12 -04:00
auth.h rpc: Delete AUTH_NEEDS_TLS(_MUTUAL_HOST) auth_stat values 2021-12-23 14:31:53 -08:00
authunix_prot.c
clnt_bck.c sockets: use socket buffer mutexes in struct socket directly 2022-05-12 13:22:12 -07:00
clnt_dg.c rpc: Make function tables const 2021-08-14 11:26:12 -04:00
clnt_rc.c rpc: Make function tables const 2021-08-14 11:26:12 -04:00
clnt_stat.h
clnt_vc.c clnt_vc.c: Replace msleep() with pause() to avoid assert panic 2022-10-14 15:46:55 -07:00
clnt.h rpc: Make function tables const 2021-08-14 11:26:12 -04:00
getnetconfig.c
krpc.h
netconfig.h
nettype.h
pmap_prot.h
replay.c
replay.h
rpc_callmsg.c
rpc_com.h
rpc_generic.c protosw: refactor protosw and domain static declaration and load 2022-08-17 11:50:32 -07:00
rpc_msg.h
rpc_prot.c
rpc.h
rpcb_clnt.c Adjust local_rpcb() definition to avoid clang 15 warning 2022-07-25 00:40:12 +02:00
rpcb_clnt.h
rpcb_prot.c
rpcb_prot.h
rpcm_subs.h
rpcsec_gss.h
rpcsec_tls.h nfsd: Allow multiple instances of rpc.tlsservd 2022-08-22 13:54:24 -07:00
svc_auth_unix.c
svc_auth.c rpc(3): Fix two typos in source code comments 2022-04-02 09:33:24 +02:00
svc_auth.h
svc_dg.c protosw: refactor protosw and domain static declaration and load 2022-08-17 11:50:32 -07:00
svc_generic.c
svc_vc.c nfsd: Allow multiple instances of rpc.tlsservd 2022-08-22 13:54:24 -07:00
svc.c nfsd: fix a NFSv4.1 Linux client mount stuck in CLOSE_WAIT 2021-04-27 15:32:35 -07:00
svc.h nfsd: Allow multiple instances of rpc.tlsservd 2022-08-22 13:54:24 -07:00
types.h
xdr.h