Skip to content
Snippets Groups Projects
Commit 7ebcab46 authored by Christoph Hellwig's avatar Christoph Hellwig
Browse files

enable missing VFS locks

parent adb70ff0
No related branches found
No related tags found
No related merge requests found
......@@ -54,14 +54,9 @@ static struct list_head mount_list = LIST_INIT(mount_list);
/*
* Global lock to access mount point.
*/
#if CONFIG_FS_THREADS > 1
static mutex_t mount_lock = MUTEX_INITIALIZER;
#define MOUNT_LOCK() mutex_lock(&mount_lock)
#define MOUNT_UNLOCK() mutex_unlock(&mount_lock)
#else
#define MOUNT_LOCK()
#define MOUNT_UNLOCK()
#endif
/*
* Lookup file system.
......
......@@ -69,15 +69,9 @@ static struct list_head vnode_table[VNODE_BUCKETS];
* If a vnode is already locked, there is no need to
* lock this global lock to access internal data.
*/
#if CONFIG_FS_THREADS > 1
static mutex_t vnode_lock = MUTEX_INITIALIZER;
#define VNODE_LOCK() mutex_lock(&vnode_lock)
#define VNODE_UNLOCK() mutex_unlock(&vnode_lock)
#else
#define VNODE_LOCK()
#define VNODE_UNLOCK()
#endif
/*
* Get the hash value from the mount point and path name.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment