[Bug 229106] intr_event_handle is unsafe with respect to interrupt handler list

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Mon Jun 18 22:56:12 UTC 2018


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=229106

--- Comment #10 from John Baldwin <jhb at FreeBSD.org> ---
To be clear, we are not talking about adding a spin mutex.  We are talking
about replacing the existing sched_lock mutex used to schedule the ithread
anyway with a dedicated spin mutex that protects the list of handlers and can
be used as the THREAD_LOCK when scheduling the ithread since ithreads are
changed in this patch to set td_lock to the new mutex when they are idle.  You
can't get away from the mutex to call sched_add(), but this lets you change
what lock is now used for that in essence.

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the freebsd-bugs mailing list