cvs commit: src/sys/fs/devfs devfs_vnops.c src/sys/fs/fifofs
fifo_vnops.c src/sys/kern uipc_usrreq.c vfs_vnops.c src/sys/vm
vnode_pager.c
Pawel Jakub Dawidek
pjd at FreeBSD.org
Thu Jul 26 16:58:10 UTC 2007
pjd 2007-07-26 16:58:09 UTC
FreeBSD src repository
Modified files:
sys/fs/devfs devfs_vnops.c
sys/fs/fifofs fifo_vnops.c
sys/kern uipc_usrreq.c vfs_vnops.c
sys/vm vnode_pager.c
Log:
When we do open, we should lock the vnode exclusively. This fixes few races:
- fifo race, where two threads assign v_fifoinfo,
- v_writecount modifications,
- v_object modifications,
- and probably more...
Discussed with: kib, ups
Approved by: re (rwatson)
Revision Changes Path
1.149 +1 -0 src/sys/fs/devfs/devfs_vnops.c
1.138 +1 -1 src/sys/fs/fifofs/fifo_vnops.c
1.206 +1 -1 src/sys/kern/uipc_usrreq.c
1.252 +2 -2 src/sys/kern/vfs_vnops.c
1.236 +3 -3 src/sys/vm/vnode_pager.c
More information about the cvs-src
mailing list