diff options
author | alc <alc@FreeBSD.org> | 2003-08-11 22:23:25 +0000 |
---|---|---|
committer | alc <alc@FreeBSD.org> | 2003-08-11 22:23:25 +0000 |
commit | 23ea8b5c7a50f2ed763686c143343bb24066d46d (patch) | |
tree | a93ec83c455d77f32aa32f7986d94ff1b573264e /sys/kern/sys_pipe.c | |
parent | fd356a44235501041b7058cf71b1b48812c8ddd9 (diff) | |
download | FreeBSD-src-23ea8b5c7a50f2ed763686c143343bb24066d46d.zip FreeBSD-src-23ea8b5c7a50f2ed763686c143343bb24066d46d.tar.gz |
Pipespace() no longer requires Giant.
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 114e7bb..2d0db5b 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); } } |