From 9c62fce0850fb3fa1e531eead992d7e0ee5e2320 Mon Sep 17 00:00:00 2001 From: Alan Cox Date: Fri, 8 Aug 2003 22:38:15 +0000 Subject: [PATCH] - Remove GIANT_REQUIRED from pipespace(). - Remove a duplicate initialization from pipe_create(). --- sys/kern/sys_pipe.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/sys/kern/sys_pipe.c b/sys/kern/sys_pipe.c index 6c0565eaf7a..3e5d50763cb 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.