Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 18 Jun 2018 22:56:10 +0000
From:      bugzilla-noreply@freebsd.org
To:        bugs@FreeBSD.org
Subject:   [Bug 229106] intr_event_handle is unsafe with respect to interrupt handler list
Message-ID:  <bug-229106-227-xDc99WuBMV@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-229106-227@https.bugs.freebsd.org/bugzilla/>
References:  <bug-229106-227@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D229106

--- Comment #10 from John Baldwin <jhb@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 c=
an
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.

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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-229106-227-xDc99WuBMV>