summaryrefslogtreecommitdiffstats
path: root/sys/kern
diff options
context:
space:
mode:
authorhsu <hsu@FreeBSD.org>2003-04-02 15:24:50 +0000
committerhsu <hsu@FreeBSD.org>2003-04-02 15:24:50 +0000
commit0878b5fe85f9bdf31eb318b05ef3dcae859db926 (patch)
tree84a185aa15cbde8ae6a2be60fe2e24d59d271141 /sys/kern
parentef610973a4f5fa7ce5ab311efa57dc95a20ea95f (diff)
downloadFreeBSD-src-0878b5fe85f9bdf31eb318b05ef3dcae859db926.zip
FreeBSD-src-0878b5fe85f9bdf31eb318b05ef3dcae859db926.tar.gz
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.
Diffstat (limited to 'sys/kern')
-rw-r--r--sys/kern/sys_pipe.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/kern/sys_pipe.c b/sys/kern/sys_pipe.c
index 8557065..3ae2f55 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;
}
OpenPOWER on IntegriCloud