summaryrefslogtreecommitdiffstats
path: root/sys/fs/smbfs/smbfs.h
diff options
context:
space:
mode:
authorrwatson <rwatson@FreeBSD.org>2008-03-02 18:56:13 +0000
committerrwatson <rwatson@FreeBSD.org>2008-03-02 18:56:13 +0000
commitf0f08023032c77ced011d5d7fabf44b57fb62581 (patch)
treeabced7be7c6eb96a24887b3270f7f14104461bdc /sys/fs/smbfs/smbfs.h
parent767a2621f07a4ba9a59a9d383581ed5558f667db (diff)
downloadFreeBSD-src-f0f08023032c77ced011d5d7fabf44b57fb62581.zip
FreeBSD-src-f0f08023032c77ced011d5d7fabf44b57fb62581.tar.gz
Replace lockmgr lock protecting smbfs node hash table with sx lock.
MFC after: 1 month
Diffstat (limited to 'sys/fs/smbfs/smbfs.h')
-rw-r--r--sys/fs/smbfs/smbfs.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/fs/smbfs/smbfs.h b/sys/fs/smbfs/smbfs.h
index 59693e3..bdecd99 100644
--- a/sys/fs/smbfs/smbfs.h
+++ b/sys/fs/smbfs/smbfs.h
@@ -65,6 +65,8 @@ struct smbfs_args {
#ifdef _KERNEL
+#include <sys/_sx.h>
+
#ifdef MALLOC_DECLARE
MALLOC_DECLARE(M_SMBFSMNT);
#endif
@@ -90,7 +92,7 @@ struct smbmount {
/* struct simplelock sm_npslock;*/
struct smbnode * sm_npstack[SMBFS_MAXPATHCOMP];
int sm_caseopt;
- struct lock sm_hashlock;
+ struct sx sm_hashlock;
LIST_HEAD(smbnode_hashhead, smbnode) *sm_hash;
u_long sm_hashlen;
int sm_didrele;
OpenPOWER on IntegriCloud