diff options
| author | Alan Cox <alc@FreeBSD.org> | 2003-08-11 22:23:25 +0000 |
|---|---|---|
| committer | Alan Cox <alc@FreeBSD.org> | 2003-08-11 22:23:25 +0000 |
| commit | ad8204e3f5be14766c37f802d8172c2f272cf515 (patch) | |
| tree | a93ec83c455d77f32aa32f7986d94ff1b573264e /sys/kern/sys_pipe.c | |
| parent | 322d6e0236ba0482abfc6803a7abbfa314e93df9 (diff) | |
Notes
Diffstat (limited to 'sys/kern/sys_pipe.c')
| -rw-r--r-- | sys/kern/sys_pipe.c | 4 |
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); } } |
