]> CyberLeo.Net >> Repos - FreeBSD/stable/10.git/commit
MFC: r316694
authorrmacklem <rmacklem@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Wed, 26 Apr 2017 22:40:08 +0000 (22:40 +0000)
committerrmacklem <rmacklem@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Wed, 26 Apr 2017 22:40:08 +0000 (22:40 +0000)
commit2a5c8d770683d312bc673a0a4e688e99ba4e2920
treea22a75fc32163554f03c67289ac64885ac25fd09
parent68ea80f3641be833645759ec6e7742ceabde5003
MFC: r316694
Fix a crash during unmount of an NFSv4.1 mount.

Larry Rosenman reported a crash on freebsd-current@ which was caused by
a premature release of the krpc backchannel socket structure.
I believe this was caused by a race between the SVC_RELEASE() in clnt_vc.c
and the xprt_unregister() in the higher layer (clnt_rc.c), which tried
to lock the mutex in the xprt structure and crashed.
This patch fixes this by removing the xprt_unregister() in the clnt_vc
layer and allowing this to always be done by the clnt_rc (higher reconnect
layer).

git-svn-id: svn://svn.freebsd.org/base/stable/10@317473 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
sys/rpc/clnt_rc.c
sys/rpc/clnt_vc.c