diff options
author | anton <anton@cvs.openbsd.org> | 2019-08-05 08:36:00 +0000 |
---|---|---|
committer | anton <anton@cvs.openbsd.org> | 2019-08-05 08:36:00 +0000 |
commit | 2de89e15b7def75453779ec4caaa525c42d8f6d5 (patch) | |
tree | 51666813036b139145bd44ffc7e017740fd196ae /usr.sbin | |
parent | 2e6a89f0541effeff8b1f6b09613577db20cbc5d (diff) |
Allow concurrent reads of the f_offset field of struct file by
serializing both read/write operations using the existing file mutex.
The vnode lock still grants exclusive write access to the offset; the
mutex is only used to make the actual write atomic and prevent any
concurrent reader from observing intermediate values.
ok mpi@ visa@
Diffstat (limited to 'usr.sbin')
0 files changed, 0 insertions, 0 deletions