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:
parent
714ae42a86
commit
049ffe98a8
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=126252
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user