From owner-cvs-all@FreeBSD.ORG Sun Aug 15 06:24:43 2004 Return-Path: Delivered-To: cvs-all@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 60F8516A4CE; Sun, 15 Aug 2004 06:24:43 +0000 (GMT) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 39B1B43D1D; Sun, 15 Aug 2004 06:24:43 +0000 (GMT) (envelope-from jmg@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.12.11/8.12.11) with ESMTP id i7F6OhTp074097; Sun, 15 Aug 2004 06:24:43 GMT (envelope-from jmg@repoman.freebsd.org) Received: (from jmg@localhost) by repoman.freebsd.org (8.12.11/8.12.11/Submit) id i7F6OhhR074096; Sun, 15 Aug 2004 06:24:43 GMT (envelope-from jmg) Message-Id: <200408150624.i7F6OhhR074096@repoman.freebsd.org> From: John-Mark Gurney Date: Sun, 15 Aug 2004 06:24:43 +0000 (UTC) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Subject: cvs commit: src/sys/cam/scsi scsi_target.c src/sys/dev/mii mii.c src/sys/fs/fifofs fifo_vnops.c src/sys/gnu/ext2fs ext2_vnops.c src/sys/kern init_main.c kern_conf.c kern_descrip.c kern_event.c... X-BeenThere: cvs-all@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: CVS commit messages for the entire tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 15 Aug 2004 06:24:43 -0000 jmg 2004-08-15 06:24:43 UTC FreeBSD src repository Modified files: sys/cam/scsi scsi_target.c sys/dev/mii mii.c sys/fs/fifofs fifo_vnops.c sys/gnu/ext2fs ext2_vnops.c sys/kern init_main.c kern_conf.c kern_descrip.c kern_event.c kern_exec.c kern_exit.c kern_fork.c kern_sig.c sys_pipe.c tty.c tty_cons.c uipc_socket.c uipc_socket2.c uipc_syscalls.c vfs_aio.c vfs_subr.c vfs_vnops.c sys/net bpf.c if.c if_var.h if_vlan.c sys/sys event.h eventvar.h filedesc.h proc.h selinfo.h vnode.h sys/ufs/ffs ffs_vnops.c sys/ufs/ufs ufs_acl.c ufs_vnops.c Log: Add locking to the kqueue subsystem. This also makes the kqueue subsystem a more complete subsystem, and removes the knowlege of how things are implemented from the drivers. Include locking around filter ops, so a module like aio will know when not to be unloaded if there are outstanding knotes using it's filter ops. Currently, it uses the MTX_DUPOK even though it is not always safe to aquire duplicate locks. Witness currently doesn't support the ability to discover if a dup lock is ok (in some cases). Reviewed by: green, rwatson (both earlier versions) Revision Changes Path 1.63 +5 -21 src/sys/cam/scsi/scsi_target.c 1.20 +1 -1 src/sys/dev/mii/mii.c 1.101 +5 -5 src/sys/fs/fifofs/fifo_vnops.c 1.85 +5 -8 src/sys/gnu/ext2fs/ext2_vnops.c 1.246 +1 -0 src/sys/kern/init_main.c 1.155 +1 -7 src/sys/kern/kern_conf.c 1.242 +7 -20 src/sys/kern/kern_descrip.c 1.77 +956 -328 src/sys/kern/kern_event.c 1.249 +1 -1 src/sys/kern/kern_exec.c 1.245 +9 -4 src/sys/kern/kern_exit.c 1.234 +2 -1 src/sys/kern/kern_fork.c 1.289 +3 -7 src/sys/kern/kern_sig.c 1.176 +11 -6 src/sys/kern/sys_pipe.c 1.228 +13 -7 src/sys/kern/tty.c 1.127 +2 -2 src/sys/kern/tty_cons.c 1.208 +10 -6 src/sys/kern/uipc_socket.c 1.137 +3 -1 src/sys/kern/uipc_socket2.c 1.200 +1 -1 src/sys/kern/uipc_syscalls.c 1.174 +15 -10 src/sys/kern/vfs_aio.c 1.521 +16 -5 src/sys/kern/vfs_subr.c 1.207 +5 -2 src/sys/kern/vfs_vnops.c 1.133 +5 -7 src/sys/net/bpf.c 1.199 +23 -19 src/sys/net/if.c 1.84 +1 -1 src/sys/net/if_var.h 1.73 +1 -1 src/sys/net/if_vlan.c 1.25 +44 -12 src/sys/sys/event.h 1.6 +20 -3 src/sys/sys/eventvar.h 1.61 +2 -4 src/sys/sys/filedesc.h 1.392 +1 -1 src/sys/sys/proc.h 1.18 +1 -1 src/sys/sys/selinfo.h 1.243 +4 -2 src/sys/sys/vnode.h 1.133 +1 -1 src/sys/ufs/ffs/ffs_vnops.c 1.20 +1 -1 src/sys/ufs/ufs/ufs_acl.c 1.242 +20 -23 src/sys/ufs/ufs/ufs_vnops.c