Do not hold onto the fdplock longer then needed. Release the lock after
authorclaudio <claudio@openbsd.org>
Mon, 8 Feb 2021 09:18:30 +0000 (09:18 +0000)
committerclaudio <claudio@openbsd.org>
Mon, 8 Feb 2021 09:18:30 +0000 (09:18 +0000)
commitc497d8397da7a6a96ee126bb9c46cf45d570ba32
treeaa859e997d77af1ed3f80277ce9b883c6fb7a42d
parent5415e555e68f6d0f6b82a97e7d06fce49a0be394
Do not hold onto the fdplock longer then needed. Release the lock after
the initial falloc() calls and then regrab it for the fdinsert() or
fdremove() calls respectiviely. Also move closef() outside of the lock.
This replaces the previously reverted lock order change that was reverted.
OK mvs@ visa@
sys/kern/tty_pty.c