created | 2020-02-11T07:23:30Z |
---|---|
begin | 2020-02-05T16:29:30Z |
end | 2020-02-05T17:03:13Z |
path | src/sys |
commits | 1 |
date | 2020-02-05T17:03:13Z | |||
---|---|---|---|---|
author | visa | |||
files | src/sys/kern/kern_descrip.c | log | diff | annotate |
src/sys/kern/kern_event.c | log | diff | annotate | |
message |
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@ |