diff options
author | 2018-08-20 16:00:22 +0000 | |
---|---|---|
committer | 2018-08-20 16:00:22 +0000 | |
commit | 2bd648c0c791046970147cb6db731832ad511740 (patch) | |
tree | 9513fd3a61c273d992777348c936600acb660044 /share | |
parent | Remove unused spllock(). (diff) | |
download | wireguard-openbsd-2bd648c0c791046970147cb6db731832ad511740.tar.xz wireguard-openbsd-2bd648c0c791046970147cb6db731832ad511740.zip |
Reorder checks in the read/write(2) family of syscalls to prepare making
file operations mp-safe.
This change makes it clear that `f_offset' is only accessed in vn_read()
and vn_write(), which will help taking it out of the KERNEL_LOCK().
This refactoring uncovered a race in vn_read() which is now documented
and will be addressed in a later diff.
ok visa@
Diffstat (limited to 'share')
0 files changed, 0 insertions, 0 deletions