summaryrefslogtreecommitdiff
path: root/libexec/ld.so/library.c
diff options
context:
space:
mode:
authorDavid Gwynne <dlg@cvs.openbsd.org>2011-05-10 01:10:09 +0000
committerDavid Gwynne <dlg@cvs.openbsd.org>2011-05-10 01:10:09 +0000
commita98d1c5a81faf275a42a852b4d5e22d8e17b8219 (patch)
treee5d5b93ab43fdad32b846264ab047ef074940088 /libexec/ld.so/library.c
parentf10e89cb5a708d686ab2cc41111518f616306f8e (diff)
when undeferring a packet, try to timeout_del first to check if you
actually removed it from the timeout wheel before releasing it. if timeout_del returns 0 then you know the timeout is about to run or is already running, meaning it will free itself so you dont have to. this handling is only done for the undefer paths at SOFTNET since it is higher than SOFTCLOCK which timeouts run from. it is possible for a timeout to start running at softclock and get interrupted by softnet. the undefer in process context blocks both these interrupts while it undefers, so it is impossible for the timeout to run and cause the list to be in this inconsistent state.
Diffstat (limited to 'libexec/ld.so/library.c')
0 files changed, 0 insertions, 0 deletions