summaryrefslogtreecommitdiff
path: root/sys/dev/pci/drm/drm_prime.c
diff options
context:
space:
mode:
authorMartin Pieuchot <mpi@cvs.openbsd.org>2018-08-20 16:00:23 +0000
committerMartin Pieuchot <mpi@cvs.openbsd.org>2018-08-20 16:00:23 +0000
commitd1cd3adde7b6cc1679b4a68d59b0b1c7fac3704b (patch)
treeb3aa15e777dcab8f9ea2f1075370a17d66935753 /sys/dev/pci/drm/drm_prime.c
parent96caa2d6c8a9b3163030ce6adf44f2f509182277 (diff)
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 'sys/dev/pci/drm/drm_prime.c')
0 files changed, 0 insertions, 0 deletions