aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/util.c
diff options
context:
space:
mode:
authorMiklos Szeredi <miklos@szeredi.hu>2004-11-11 10:33:58 +0000
committerMiklos Szeredi <miklos@szeredi.hu>2004-11-11 10:33:58 +0000
commit3a6ea06efab29198ba664945cec8296b7e1e356e (patch)
tree390cdfaafa43ac0201d8e54ee63fcc45fac07a20 /kernel/util.c
parent076136196276bf5cd898b7fc82d4ee0aeb8d7fde (diff)
downloadlibfuse-3a6ea06efab29198ba664945cec8296b7e1e356e.tar.gz
merge from 2_0_merge1 to 2_0_merge2
Diffstat (limited to 'kernel/util.c')
-rw-r--r--kernel/util.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/kernel/util.c b/kernel/util.c
index 13f3fe5..ac6455d 100644
--- a/kernel/util.c
+++ b/kernel/util.c
@@ -17,7 +17,7 @@ MODULE_DESCRIPTION("Filesystem in Userspace");
MODULE_LICENSE("GPL");
#endif
-spinlock_t fuse_lock = SPIN_LOCK_UNLOCKED;
+spinlock_t fuse_lock;
int __init fuse_init(void)
{
@@ -27,6 +27,7 @@ int __init fuse_init(void)
FUSE_VERSION,
FUSE_KERNEL_VERSION, FUSE_KERNEL_MINOR_VERSION);
+ spin_lock_init(&fuse_lock);
res = fuse_fs_init();
if (res)
goto err;