summaryrefslogtreecommitdiffstats
path: root/sys/fs/smbfs/smbfs_node.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/fs/smbfs/smbfs_node.c')
-rw-r--r--sys/fs/smbfs/smbfs_node.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/sys/fs/smbfs/smbfs_node.c b/sys/fs/smbfs/smbfs_node.c
index 9761a8f..d4a93fe 100644
--- a/sys/fs/smbfs/smbfs_node.c
+++ b/sys/fs/smbfs/smbfs_node.c
@@ -40,6 +40,7 @@
#include <sys/proc.h>
#include <sys/queue.h>
#include <sys/stat.h>
+#include <sys/sx.h>
#include <sys/sysctl.h>
#include <sys/time.h>
#include <sys/vnode.h>
@@ -58,11 +59,8 @@
#include <fs/smbfs/smbfs_subr.h>
#define SMBFS_NOHASH(smp, hval) (&(smp)->sm_hash[(hval) & (smp)->sm_hashlen])
-#define smbfs_hash_lock(smp, td) \
- lockmgr(&smp->sm_hashlock, LK_EXCLUSIVE, NULL)
-#define smbfs_hash_unlock(smp, td) \
- lockmgr(&smp->sm_hashlock, LK_RELEASE, NULL)
-
+#define smbfs_hash_lock(smp, td) sx_xlock(&smp->sm_hashlock)
+#define smbfs_hash_unlock(smp, td) sx_xunlock(&smp->sm_hashlock)
extern struct vop_vector smbfs_vnodeops; /* XXX -> .h file */
OpenPOWER on IntegriCloud