Add some missing mutex locking to the new NFS client.
MFC after: 2 weeks
This commit is contained in:
parent
bef655932c
commit
81ddb192e8
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=222291
@ -2470,10 +2470,12 @@ ncl_commit(struct vnode *vp, u_quad_t offset, int cnt, struct ucred *cred,
|
||||
error = nfsrpc_commit(vp, offset, cnt, cred, td, verf, &nfsva,
|
||||
&attrflag, NULL);
|
||||
if (!error) {
|
||||
mtx_lock(&nmp->nm_mtx);
|
||||
if (NFSBCMP((caddr_t)nmp->nm_verf, verf, NFSX_VERF)) {
|
||||
NFSBCOPY(verf, (caddr_t)nmp->nm_verf, NFSX_VERF);
|
||||
error = NFSERR_STALEWRITEVERF;
|
||||
}
|
||||
mtx_unlock(&nmp->nm_mtx);
|
||||
if (!error && attrflag)
|
||||
(void) nfscl_loadattrcache(&vp, &nfsva, NULL, NULL,
|
||||
0, 1);
|
||||
|
Loading…
Reference in New Issue
Block a user