HomeFreeBSD

Actually, upcalls cannot be freed while destroying the thread because we
rS171611Unpublished

Unpublished Commit ยท Learn More

No further details are available.

Description

Actually, upcalls cannot be freed while destroying the thread because we
should call uma_zfree() with various spinlock helds. Rearranging the
code would not help here because we cannot break atomicity respect
prcess spinlock, so the only one choice we have is to defer the operation.
In order to do this use a global queue synchronized through the kse_lock
spinlock which is freed at any thread_alloc() / thread_wait() through a
call to thread_reap().
Note that this approach is not ideal as we should want a per-process
list of zombie upcalls, but it follows initial guidelines of KSE authors.

Tested by: jkim, pav
Approved by: jeff, julian
Approved by: re

Details

Provenance
attilioAuthored on
Parents
rS171610: Modified release notes:
Branches
Unknown
Tags
Unknown

Event Timeline