summaryrefslogtreecommitdiff
path: root/sys/kern/sys_pipe.c
diff options
context:
space:
mode:
authorAlan Cox <alc@FreeBSD.org>2003-08-11 22:23:25 +0000
committerAlan Cox <alc@FreeBSD.org>2003-08-11 22:23:25 +0000
commitad8204e3f5be14766c37f802d8172c2f272cf515 (patch)
treea93ec83c455d77f32aa32f7986d94ff1b573264e /sys/kern/sys_pipe.c
parent322d6e0236ba0482abfc6803a7abbfa314e93df9 (diff)
Notes
Diffstat (limited to 'sys/kern/sys_pipe.c')
-rw-r--r--sys/kern/sys_pipe.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/kern/sys_pipe.c b/sys/kern/sys_pipe.c
index 114e7bb82222..2d0db5b63243 100644
--- a/sys/kern/sys_pipe.c
+++ b/sys/kern/sys_pipe.c
@@ -946,10 +946,10 @@ pipe_write(fp, uio, active_cred, flags, td)
(wpipe->pipe_buffer.cnt == 0)) {
if ((error = pipelock(wpipe, 1)) == 0) {
- PIPE_GET_GIANT(wpipe);
+ PIPE_UNLOCK(wpipe);
if (pipespace(wpipe, BIG_PIPE_SIZE) == 0)
atomic_add_int(&nbigpipe, 1);
- PIPE_DROP_GIANT(wpipe);
+ PIPE_LOCK(wpipe);
pipeunlock(wpipe);
}
}