CVSROOT:        /cvs
Module name:    src
Changes by:     [email protected]    2018/08/20 10:00:22

Modified files:
        sys/dev/pci/drm: drm_linux.c 
        sys/kern       : kern_event.c sys_generic.c sys_pipe.c 
                         sys_socket.c vfs_syscalls.c vfs_vnops.c 
        sys/sys        : file.h socketvar.h uio.h 

Log message:
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@

Reply via email to