summaryrefslogtreecommitdiffstats
path: root/sys/kern/sys_pipe.c
diff options
context:
space:
mode:
authoralc <alc@FreeBSD.org>2003-08-08 22:38:15 +0000
committeralc <alc@FreeBSD.org>2003-08-08 22:38:15 +0000
commitf5d5533b42ab6e80d52af9fb3721386007478b0c (patch)
tree381ab94701a01ee67b802cb0c86613bd57b03378 /sys/kern/sys_pipe.c
parent6245694474df7404b62b9d4fd7058dfeee854e3f (diff)
downloadFreeBSD-src-f5d5533b42ab6e80d52af9fb3721386007478b0c.zip
FreeBSD-src-f5d5533b42ab6e80d52af9fb3721386007478b0c.tar.gz
- Remove GIANT_REQUIRED from pipespace().
- Remove a duplicate initialization from pipe_create().
Diffstat (limited to 'sys/kern/sys_pipe.c')
-rw-r--r--sys/kern/sys_pipe.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/sys/kern/sys_pipe.c b/sys/kern/sys_pipe.c
index 6c0565e..3e5d507 100644
--- a/sys/kern/sys_pipe.c
+++ b/sys/kern/sys_pipe.c
@@ -336,7 +336,6 @@ pipespace(cpipe, size)
static int curfail = 0;
static struct timeval lastfail;
- GIANT_REQUIRED;
KASSERT(cpipe->pipe_mtxp == NULL || !mtx_owned(PIPE_MTX(cpipe)),
("pipespace: pipe mutex locked"));
@@ -400,9 +399,6 @@ pipe_create(cpipep)
/* so pipespace()->pipe_free_kmem() doesn't follow junk pointer */
cpipe->pipe_buffer.object = NULL;
-#ifndef PIPE_NODIRECT
- cpipe->pipe_map.kva = 0;
-#endif
/*
* protect so pipeclose() doesn't follow a junk pointer
* if pipespace() fails.
OpenPOWER on IntegriCloud