mirror of
https://github.com/Fishwaldo/linux-bl808.git
synced 2025-06-17 20:25:19 +00:00
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: Al Viro <viro@zeniv.linux.org.uk>
This commit is contained in:
parent
3cc4a84e02
commit
8f5fed1e91
3 changed files with 6 additions and 6 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue