HomeFreeBSD

Fix a crash during unmount of an NFSv4.1 mount.

Description

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).

Reported by: ler@lerctr.org
Tested by: ler@letctr.org
MFC after: 2 weeks

Details

Provenance
rmacklemAuthored on
Parents
rS316693: 8046 Let calloc() do the multiplication in libzfs_fru_refresh
Branches
Unknown
Tags
Unknown