From owner-cvs-all@FreeBSD.ORG Sat Mar 1 19:47:53 2008 Return-Path: Delivered-To: cvs-all@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 926AE1065675; Sat, 1 Mar 2008 19:47:53 +0000 (UTC) (envelope-from attilio@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [IPv6:2001:4f8:fff6::29]) by mx1.freebsd.org (Postfix) with ESMTP id 7BED48FC2B; Sat, 1 Mar 2008 19:47:53 +0000 (UTC) (envelope-from attilio@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.14.1/8.14.1) with ESMTP id m21JlrWw067076; Sat, 1 Mar 2008 19:47:53 GMT (envelope-from attilio@repoman.freebsd.org) Received: (from attilio@localhost) by repoman.freebsd.org (8.14.1/8.14.1/Submit) id m21JlpmG067075; Sat, 1 Mar 2008 19:47:51 GMT (envelope-from attilio) Message-Id: <200803011947.m21JlpmG067075@repoman.freebsd.org> From: Attilio Rao Date: Sat, 1 Mar 2008 19:47:50 +0000 (UTC) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Cc: Subject: cvs commit: src/sys/dev/usb ehci.c src/sys/fs/nwfs nwfs_subr.c src/sys/kern kern_lock.c vfs_bio.c vfs_subr.c src/sys/netncp ncp_conn.h src/sys/netsmb smb_conn.h src/sys/nfs4client nfs4_idmap.c src/sys/sys buf.h bufobj.h lockmgr.h mount.h vnode.h X-BeenThere: cvs-all@freebsd.org X-Mailman-Version: 2.1.5 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: Sat, 01 Mar 2008 19:47:53 -0000 attilio 2008-03-01 19:47:50 UTC FreeBSD src repository Modified files: sys/dev/usb ehci.c sys/fs/nwfs nwfs_subr.c sys/kern kern_lock.c vfs_bio.c vfs_subr.c sys/netncp ncp_conn.h sys/netsmb smb_conn.h sys/nfs4client nfs4_idmap.c sys/sys buf.h bufobj.h lockmgr.h mount.h vnode.h Log: - Handle buffer lock waiters count directly in the buffer cache instead than rely on the lockmgr support [1]: * bump the waiters only if the interlock is held * let brelvp() return the waiters count * rely on brelvp() instead than BUF_LOCKWAITERS() in order to check for the waiters number - Remove a namespace pollution introduced recently with lockmgr.h including lock.h by including lock.h directly in the consumers and making it mandatory for using lockmgr. - Modify flags accepted by lockinit(): * introduce LK_NOPROFILE which disables lock profiling for the specified lockmgr * introduce LK_QUIET which disables ktr tracing for the specified lockmgr [2] * disallow LK_SLEEPFAIL and LK_NOWAIT to be passed there so that it can only be used on a per-instance basis - Remove BUF_LOCKWAITERS() and lockwaiters() as they are no longer used This patch breaks KPI so __FreBSD_version will be bumped and manpages updated by further commits. Additively, 'struct buf' changes results in a disturbed ABI also. [2] Really, currently there is no ktr tracing in the lockmgr, but it will be added soon. [1] Submitted by: kib Tested by: pho, Andrea Barberio Revision Changes Path 1.61 +1 -0 src/sys/dev/usb/ehci.c 1.18 +1 -1 src/sys/fs/nwfs/nwfs_subr.c 1.127 +8 -18 src/sys/kern/kern_lock.c 1.537 +8 -6 src/sys/kern/vfs_bio.c 1.720 +5 -1 src/sys/kern/vfs_subr.c 1.13 +1 -0 src/sys/netncp/ncp_conn.h 1.12 +1 -0 src/sys/netsmb/smb_conn.h 1.7 +1 -0 src/sys/nfs4client/nfs4_idmap.c 1.203 +33 -16 src/sys/sys/buf.h 1.19 +1 -0 src/sys/sys/bufobj.h 1.65 +26 -19 src/sys/sys/lockmgr.h 1.229 +1 -1 src/sys/sys/mount.h 1.331 +1 -8 src/sys/sys/vnode.h