In the various open functions reduce the fdplock() to only span over the
authorclaudio <claudio@openbsd.org>
Thu, 11 Feb 2021 12:08:21 +0000 (12:08 +0000)
committerclaudio <claudio@openbsd.org>
Thu, 11 Feb 2021 12:08:21 +0000 (12:08 +0000)
commit5969ccd0a5db96ab0203a5511600e0f38cc0edd6
tree229cb6ae894936a4cac20f34b7509ebedcfd0dd7
parent2f79a14d14d67e9f0feaba710d613d6f803671f4
In the various open functions reduce the fdplock() to only span over the
function which need the lock (falloc, fdinsert, fdremove). In most cases
it is not correct to hold the lock while calling VFS functions or e.g.
closef since those aquire or release long lived VFS locks.
OK visa@ mvs@
sys/kern/vfs_syscalls.c