diff options
author | Sasha Levin <sasha.levin@oracle.com> | 2016-01-07 17:49:51 -0500 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2016-01-09 02:57:21 -0500 |
commit | 8f5fed1e917588f946ad8882bd47a4093db0ff4c (patch) | |
tree | 8b13a8cb4d56e4442e1cb4cfe838e95dbce806f0 /fs/9p/v9fs.h | |
parent | 3cc4a84e026e8d61b7ffe4a7367ed09a555f2c5b (diff) | |
download | linux-8f5fed1e917588f946ad8882bd47a4093db0ff4c.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: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'fs/9p/v9fs.h')
-rw-r--r-- | fs/9p/v9fs.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/9p/v9fs.h b/fs/9p/v9fs.h index 0923f2cf3c80..6877050384a1 100644 --- a/fs/9p/v9fs.h +++ b/fs/9p/v9fs.h @@ -123,7 +123,7 @@ struct v9fs_session_info { struct v9fs_inode { #ifdef CONFIG_9P_FSCACHE - spinlock_t fscache_lock; + struct mutex fscache_lock; struct fscache_cookie *fscache; #endif struct p9_qid qid; |