Assert pipe mutex in pipeselwakeup(), as we manipulate pipe_state

in a non-atomic manner.  It appears to always be called with the
mutex (good).
This commit is contained in:
Robert Watson 2004-02-26 00:18:22 +00:00
parent 714ae42a86
commit 049ffe98a8
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=126252

View File

@ -478,6 +478,7 @@ pipeselwakeup(cpipe)
struct pipe *cpipe;
{
PIPE_LOCK_ASSERT(cpipe, MA_OWNED);
if (cpipe->pipe_state & PIPE_SEL) {
cpipe->pipe_state &= ~PIPE_SEL;
selwakeuppri(&cpipe->pipe_sel, PSOCK);