From c31548c820f887cd1f326667e27d85a55fdcc703 Mon Sep 17 00:00:00 2001 From: Jeffrey Hsu Date: Wed, 2 Apr 2003 15:24:50 +0000 Subject: [PATCH] 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. --- sys/kern/sys_pipe.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/kern/sys_pipe.c b/sys/kern/sys_pipe.c index 85570651535..3ae2f55bbca 100644 --- a/sys/kern/sys_pipe.c +++ b/sys/kern/sys_pipe.c @@ -824,8 +824,8 @@ retry: PIPE_GET_GIANT(wpipe); pipe_destroy_write_buffer(wpipe); PIPE_DROP_GIANT(wpipe); - pipeunlock(wpipe); pipeselwakeup(wpipe); + pipeunlock(wpipe); error = EPIPE; goto error1; }