From 313ccfcf9e23e29fc79adcefe9b9e1b52f7643ff Mon Sep 17 00:00:00 2001 From: phk Date: Wed, 17 Nov 2004 08:01:10 +0000 Subject: Push Giant down through select and poll. Don't grab Giant in the upper syscall/wrapper code NET_LOCK_GIANT in the socket code (sockets/fifos). mtx_lock(&Giant) in the vnode code. Devfs grabs Giant if the driver is marked as needing Giant. --- sys/kern/sys_socket.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'sys/kern/sys_socket.c') diff --git a/sys/kern/sys_socket.c b/sys/kern/sys_socket.c index f40d230..4a7911d 100644 --- a/sys/kern/sys_socket.c +++ b/sys/kern/sys_socket.c @@ -223,8 +223,10 @@ soo_poll(fp, events, active_cred, td) struct socket *so = fp->f_data; int error; + NET_LOCK_GIANT(); error = (so->so_proto->pr_usrreqs->pru_sopoll) (so, events, fp->f_cred, td); + NET_UNLOCK_GIANT(); return (error); } -- cgit v1.1