]> CyberLeo.Net >> Repos - FreeBSD/stable/8.git/commit
MFC: r221127
authorrmacklem <rmacklem@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Sun, 15 May 2011 00:25:19 +0000 (00:25 +0000)
committerrmacklem <rmacklem@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Sun, 15 May 2011 00:25:19 +0000 (00:25 +0000)
commit117abd140cbf480fd099ca7aab21bec22ccdd74b
tree5cfa8824c63c5cd19fe32674fa6933695fc95516
parentbaeabde999fd836acda446b8e321f99c574e3f38
MFC: r221127
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.

git-svn-id: svn://svn.freebsd.org/base/stable/8@221934 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
sys/rpc/clnt.h
sys/rpc/clnt_rc.c
sys/rpc/clnt_vc.c
sys/rpc/rpcb_clnt.c