diff options
author | hsu <hsu@FreeBSD.org> | 2003-04-02 15:24:50 +0000 |
---|---|---|
committer | hsu <hsu@FreeBSD.org> | 2003-04-02 15:24:50 +0000 |
commit | 0878b5fe85f9bdf31eb318b05ef3dcae859db926 (patch) | |
tree | 84a185aa15cbde8ae6a2be60fe2e24d59d271141 /sys/kern | |
parent | ef610973a4f5fa7ce5ab311efa57dc95a20ea95f (diff) | |
download | FreeBSD-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.c | 2 |
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; } |