PIPE_LOCKFL
KASSERT((pipe->pipe_state & PIPE_LOCKFL) == 0);
while (pipe->pipe_state & PIPE_LOCKFL) {
pipe->pipe_state |= PIPE_LOCKFL;
KASSERT(pipe->pipe_state & PIPE_LOCKFL);
pipe->pipe_state &= ~PIPE_LOCKFL;