summaryrefslogtreecommitdiffstats
path: root/sys/kern
diff options
context:
space:
mode:
authoralc <alc@FreeBSD.org>2003-08-07 04:32:40 +0000
committeralc <alc@FreeBSD.org>2003-08-07 04:32:40 +0000
commit6178e0ad16ac7a3ad0282aba73290819f06f7568 (patch)
tree1f70737353dc97dc8346b79048d8900af38e11ce /sys/kern
parent689c876a9ddef9bf768fdeae6c68fab252583ab3 (diff)
downloadFreeBSD-src-6178e0ad16ac7a3ad0282aba73290819f06f7568.zip
FreeBSD-src-6178e0ad16ac7a3ad0282aba73290819f06f7568.tar.gz
- Remove GIANT_REQUIRED from pipe_free_kmem().
- Remove the acquisition and release of Giant around pipe_kmem_free() and uma_zfree() in pipeclose().
Diffstat (limited to 'sys/kern')
-rw-r--r--sys/kern/sys_pipe.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/sys/kern/sys_pipe.c b/sys/kern/sys_pipe.c
index 2e63e76..6c0565e 100644
--- a/sys/kern/sys_pipe.c
+++ b/sys/kern/sys_pipe.c
@@ -1400,7 +1400,6 @@ pipe_free_kmem(cpipe)
struct pipe *cpipe;
{
- GIANT_REQUIRED;
KASSERT(cpipe->pipe_mtxp == NULL || !mtx_owned(PIPE_MTX(cpipe)),
("pipespace: pipe mutex locked"));
@@ -1487,10 +1486,8 @@ pipeclose(cpipe)
free(PIPE_MTX(cpipe), M_TEMP);
}
}
- mtx_lock(&Giant);
pipe_free_kmem(cpipe);
uma_zfree(pipe_zone, cpipe);
- mtx_unlock(&Giant);
}
/*ARGSUSED*/
OpenPOWER on IntegriCloud