]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
This patch is believed to fix a problem in the kernel rpc for
authorRick Macklem <rmacklem@FreeBSD.org>
Wed, 27 Apr 2011 18:19:26 +0000 (18:19 +0000)
committerRick Macklem <rmacklem@FreeBSD.org>
Wed, 27 Apr 2011 18:19:26 +0000 (18:19 +0000)
commit7b67bd9f3dcc59ca1721363afab513cb993e77f9
treeee0c9845f07e58264646801249ae55250ef3edae
parent4d2ede67985020a26d980f6cfbd37bae0f59ce34
This patch is believed to fix a problem in the kernel rpc for
non-interruptible NFS mounts, where a kernel thread will seem
to be stuck sleeping on "rpccon". The msleep() in clnt_vc_create()
that was waiting to a TCP connect to complete would return ERESTART,
since PCATCH was specified. Then the tsleep() in clnt_reconnect_call()
would sleep for 1 second and then try again and again and...
The patch changes the msleep() in clnt_vc_create() so it only sets
the PCATCH flag for interruptible cases.

Tested by: pho
Reviewed by: jhb
MFC after: 2 weeks
sys/rpc/clnt.h
sys/rpc/clnt_rc.c
sys/rpc/clnt_vc.c
sys/rpc/rpcb_clnt.c