summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
authoralc <alc@FreeBSD.org>2003-08-11 22:23:25 +0000
committeralc <alc@FreeBSD.org>2003-08-11 22:23:25 +0000
commit23ea8b5c7a50f2ed763686c143343bb24066d46d (patch)
treea93ec83c455d77f32aa32f7986d94ff1b573264e /sys
parentfd356a44235501041b7058cf71b1b48812c8ddd9 (diff)
downloadFreeBSD-src-23ea8b5c7a50f2ed763686c143343bb24066d46d.zip
FreeBSD-src-23ea8b5c7a50f2ed763686c143343bb24066d46d.tar.gz
Pipespace() no longer requires Giant.
Diffstat (limited to 'sys')
-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 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);
}
}
OpenPOWER on IntegriCloud