Need to hold the same SMP lock for (knote) list traversal as for

list manipulation.  This lock also protects read-modify-write operations
on the pipe_state field.
This commit is contained in:
Jeffrey Hsu 2003-04-02 15:24:50 +00:00
parent 33e1dc7738
commit c31548c820

View File

@ -824,8 +824,8 @@ pipe_direct_write(wpipe, uio)
PIPE_GET_GIANT(wpipe);
pipe_destroy_write_buffer(wpipe);
PIPE_DROP_GIANT(wpipe);
pipeunlock(wpipe);
pipeselwakeup(wpipe);
pipeunlock(wpipe);
error = EPIPE;
goto error1;
}