Generalize foffset_lock/unlock() by splitting the locking info file_v_lock/unlock() (LP64 case) or file_v_lock/unlock_mtxp() for ILP32 (using mutex pool) and then taking the action to read the offset. sys/file.h: rename struct file f_vnread_flags member into generic f_vflags
Details
Details
Diff Detail
Diff Detail
- Repository
- rG FreeBSD src repository
- Lint
Lint Not Applicable - Unit
Tests Not Applicable
Event Timeline
sys/kern/vfs_vnops.c | ||
---|---|---|
834 | Note that f_offset is no longer read under the sleepq lock in this case, but it does not matter. |
sys/kern/vfs_vnops.c | ||
---|---|---|
818 | Should this be state | lock_bit? |
sys/kern/vfs_vnops.c | ||
---|---|---|
810 | There too. |
Comment Actions
Remove unneeded volatile qualifier for var accessed as atomic.
Systematically use flagsp.