diff options
author | tegge <tegge@FreeBSD.org> | 2006-01-09 18:57:35 +0000 |
---|---|---|
committer | tegge <tegge@FreeBSD.org> | 2006-01-09 18:57:35 +0000 |
commit | 80c468716902ac144943bb156f18b2c33f5ac11e (patch) | |
tree | d1c7f9ccb59a987ada7f06f5d796a4e9e70747e4 /sys/nfs4client | |
parent | c62c3ef8ae4cd6391bd2eb1b15f506b6305b8b55 (diff) | |
download | FreeBSD-src-80c468716902ac144943bb156f18b2c33f5ac11e.zip FreeBSD-src-80c468716902ac144943bb156f18b2c33f5ac11e.tar.gz |
Obtain mount point lock before restarting sync loop if vget() failed.
Reviewed by: truckman
Diffstat (limited to 'sys/nfs4client')
-rw-r--r-- | sys/nfs4client/nfs4_vfsops.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/nfs4client/nfs4_vfsops.c b/sys/nfs4client/nfs4_vfsops.c index 27249b8..1e4968c 100644 --- a/sys/nfs4client/nfs4_vfsops.c +++ b/sys/nfs4client/nfs4_vfsops.c @@ -752,6 +752,7 @@ loop: continue; } if (vget(vp, LK_EXCLUSIVE | LK_INTERLOCK, td)) { + MNT_ILOCK(mp); goto loop; } error = VOP_FSYNC(vp, waitfor, td); |