From owner-cvs-all@FreeBSD.ORG Thu Jul 22 20:40:24 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 481F916A4CE; Thu, 22 Jul 2004 20:40:24 +0000 (GMT) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4396343D2D; Thu, 22 Jul 2004 20:40:24 +0000 (GMT) (envelope-from rwatson@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 i6MKeOIp014221; Thu, 22 Jul 2004 20:40:24 GMT (envelope-from rwatson@repoman.freebsd.org) Received: (from rwatson@localhost) by repoman.freebsd.org (8.12.11/8.12.11/Submit) id i6MKeOFE014220; Thu, 22 Jul 2004 20:40:24 GMT (envelope-from rwatson) Message-Id: <200407222040.i6MKeOFE014220@repoman.freebsd.org> From: Robert Watson Date: Thu, 22 Jul 2004 20:40:24 +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/kern kern_descrip.c kern_event.c sys_socket.c vfs_vnops.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: Thu, 22 Jul 2004 20:40:24 -0000 rwatson 2004-07-22 20:40:24 UTC FreeBSD src repository Modified files: sys/kern kern_descrip.c kern_event.c sys_socket.c vfs_vnops.c Log: Push Giant acquisition down into fo_stat() from most callers. Acquire Giant conditional on debug.mpsafenet in the socket soo_stat() routine, unconditionally in vn_statfile() for VFS, and otherwise don't acquire Giant. Accept an unlocked read in kqueue_stat(), and cryptof_stat() is a no-op. Don't acquire Giant in fstat() system call. Note: in fdescfs, fo_stat() is called while holding Giant due to the VFS stack sitting on top, and therefore there will still be Giant recursion in this case. Revision Changes Path 1.238 +0 -6 src/sys/kern/kern_descrip.c 1.74 +1 -0 src/sys/kern/kern_event.c 1.63 +5 -1 src/sys/kern/sys_socket.c 1.205 +2 -0 src/sys/kern/vfs_vnops.c