diff options
author | Visa Hankala <visa@cvs.openbsd.org> | 2020-02-05 17:03:14 +0000 |
---|---|---|
committer | Visa Hankala <visa@cvs.openbsd.org> | 2020-02-05 17:03:14 +0000 |
commit | 92471b81023c503b7adaa22949e708bf98fc4b2b (patch) | |
tree | 085c6f88e86a1c2bb8b0ba7c1593b5fe8a1c658d /sys/msdosfs | |
parent | 0c2e71d12ead5b088e54c5bb23b99bf102f7c7c6 (diff) |
Move kernel locking inside knote_fdclose() from finishdup() and
fdrelease(). This makes the upper layer of file descriptor closing
free of KERNEL_LOCK() when the process does not use kqueue.
The kernel locking around fdremove() and knote_fdclose() is no longer
needed because kqueue_register() checks if there has been a race with
file descriptor close. Moreover, the locking became ineffective against
these races when filterops callbacks were allowed to sleep.
OK anton@, mpi@
Diffstat (limited to 'sys/msdosfs')
0 files changed, 0 insertions, 0 deletions