path: root/sys/netsmb
diff options
authorAttilio Rao <attilio@FreeBSD.org>2008-03-01 19:47:50 +0000
committerAttilio Rao <attilio@FreeBSD.org>2008-03-01 19:47:50 +0000
commit7fbfba7bf84b75d4258438a8380cfc3a52e67557 (patch)
treeaae2aca960881cff832f160d3cf4e0a5dcfa5d55 /sys/netsmb
parentfffba935e4085724c899c44c9fb5a10dede5016e (diff)
- 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>
Notes: svn path=/head/; revision=176708
Diffstat (limited to 'sys/netsmb')
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/netsmb/smb_conn.h b/sys/netsmb/smb_conn.h
index a83af8b15038..f9d8272bb43f 100644
--- a/sys/netsmb/smb_conn.h
+++ b/sys/netsmb/smb_conn.h
@@ -164,6 +164,7 @@ struct smb_share_info {
#ifdef _KERNEL
+#include <sys/lock.h>
#include <sys/lockmgr.h>
#include <netsmb/smb_subr.h>