diff options
author | des <des@FreeBSD.org> | 2001-01-21 22:23:11 +0000 |
---|---|---|
committer | des <des@FreeBSD.org> | 2001-01-21 22:23:11 +0000 |
commit | b3c27aaaf71f80f39e0bc2196f9a32b99656179f (patch) | |
tree | b72f07724b85554241dfdc306867216a196d0604 /sys/kern/uipc_socket.c | |
parent | c26d01c0b9838b42bdfb45af2319827fc2a5cd75 (diff) | |
download | FreeBSD-src-b3c27aaaf71f80f39e0bc2196f9a32b99656179f.zip FreeBSD-src-b3c27aaaf71f80f39e0bc2196f9a32b99656179f.tar.gz |
First step towards an MP-safe zone allocator:
- have zalloc() and zfree() always lock the vm_zone.
- remove zalloci() and zfreei(), which are now redundant.
Reviewed by: bmilekic, jasone
Diffstat (limited to 'sys/kern/uipc_socket.c')
-rw-r--r-- | sys/kern/uipc_socket.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/kern/uipc_socket.c b/sys/kern/uipc_socket.c index fe78205..62459df 100644 --- a/sys/kern/uipc_socket.c +++ b/sys/kern/uipc_socket.c @@ -113,7 +113,7 @@ soalloc(waitok) { struct socket *so; - so = zalloci(socket_zone); + so = zalloc(socket_zone); if (so) { /* XXX race condition for reentrant kernel */ bzero(so, sizeof *so); @@ -211,7 +211,7 @@ sodealloc(so) } #endif crfree(so->so_cred); - zfreei(so->so_zone, so); + zfree(so->so_zone, so); } int |