Date: Sat, 1 Mar 2008 19:47:50 +0000 (UTC) From: Attilio Rao <attilio@FreeBSD.org> To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org 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 Message-ID: <200803011947.m21JlpmG067075@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
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 <insomniac at slackware dot it> 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200803011947.m21JlpmG067075>