summaryrefslogtreecommitdiffstats
path: root/fs/9p/vfs_inode.c
diff options
context:
space:
mode:
authorSasha Levin <sasha.levin@oracle.com>2015-11-09 16:06:53 -0500
committerEric Van Hensbergen <ericvh@gmail.com>2016-01-08 10:34:17 -0600
commita333e4bf2556b93c908e56b39be7bbd555f1b6cc (patch)
treeed776b1a18cc9654c2c8ec536081d31e222df33e /fs/9p/vfs_inode.c
parent3053600ed4f71115631258f0d64eca0d10b11bdc (diff)
downloadlinux-a333e4bf2556b93c908e56b39be7bbd555f1b6cc.tar.bz2
fs/9p: use fscache mutex rather than spinlock
We may sleep inside a the lock, so use a mutex rather than spinlock. Signed-off-by: Sasha Levin <sasha.levin@oracle.com> Signed-off-by: Eric Van Hensbergen <ericvh@gmail.com>
Diffstat (limited to 'fs/9p/vfs_inode.c')
-rw-r--r--fs/9p/vfs_inode.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/9p/vfs_inode.c b/fs/9p/vfs_inode.c
index 699941e90667..b0358db2f472 100644
--- a/fs/9p/vfs_inode.c
+++ b/fs/9p/vfs_inode.c
@@ -244,7 +244,7 @@ struct inode *v9fs_alloc_inode(struct super_block *sb)
return NULL;
#ifdef CONFIG_9P_FSCACHE
v9inode->fscache = NULL;
- spin_lock_init(&v9inode->fscache_lock);
+ mutex_init(&v9inode->fscache_lock);
#endif
v9inode->writeback_fid = NULL;
v9inode->cache_validity = 0;