diff options
author | rwatson <rwatson@FreeBSD.org> | 2003-05-15 21:07:33 +0000 |
---|---|---|
committer | rwatson <rwatson@FreeBSD.org> | 2003-05-15 21:07:33 +0000 |
commit | 7e2cfac5e09cab2e6a3c4e05c476c2326bb4ba09 (patch) | |
tree | 4e2cbe329bb2e238e258021517dd161f6d7d58fb /sys/nfsclient/nfs_bio.c | |
parent | 5edcb9f9a820227896e9652d30b26af8c1d9abc9 (diff) | |
download | FreeBSD-src-7e2cfac5e09cab2e6a3c4e05c476c2326bb4ba09.zip FreeBSD-src-7e2cfac5e09cab2e6a3c4e05c476c2326bb4ba09.tar.gz |
Jeff added locking assertions that the VV_ flags on vnodes were modified
only while holding appropriate vnode locks. This patch slides the lock
release for ufs_extattr_enable() to continue to hold the active vnode lock
on a backing file until after the flag change; it also acquires a vnode
lock when disabling an attribute and hence clearing a flag on the backing
vnode. This permits VFS_DEBUG_LOCKS to run UFS1 extended attributes
without panicking, as well as preventing a potential race and vnode flag
problem.
Approved by: re (jhb)
Pointed out by: DEBUG_VFS_LOCKS
Diffstat (limited to 'sys/nfsclient/nfs_bio.c')
0 files changed, 0 insertions, 0 deletions