summaryrefslogtreecommitdiffstats
path: root/fs/cifs/cifsglob.h
diff options
context:
space:
mode:
authorPavel Shilovsky <pshilovsky@etersoft.ru>2012-09-19 15:22:44 +0200
committerSteve French <smfrench@gmail.com>2012-09-25 04:46:33 +0200
commit1b4b55a1d9404f51aacf1ff19887eb911484057d (patch)
treee2909277cc8db445c1d839c4859449a32cbfc08a /fs/cifs/cifsglob.h
parentCIFS: Use brlock cache for SMB2 (diff)
downloadlinux-1b4b55a1d9404f51aacf1ff19887eb911484057d.tar.xz
linux-1b4b55a1d9404f51aacf1ff19887eb911484057d.zip
CIFS: Turn lock mutex into rw semaphore
and allow several processes to walk through the lock list and read can_cache_brlcks value if they are not going to modify them. Signed-off-by: Pavel Shilovsky <pshilovsky@etersoft.ru> Signed-off-by: Steve French <sfrench@us.ibm.com>
Diffstat (limited to 'fs/cifs/cifsglob.h')
-rw-r--r--fs/cifs/cifsglob.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/cifs/cifsglob.h b/fs/cifs/cifsglob.h
index d3c72713fec4..e2492e1cdb85 100644
--- a/fs/cifs/cifsglob.h
+++ b/fs/cifs/cifsglob.h
@@ -1000,7 +1000,7 @@ void cifsFileInfo_put(struct cifsFileInfo *cifs_file);
struct cifsInodeInfo {
bool can_cache_brlcks;
struct list_head llist; /* locks helb by this inode */
- struct mutex lock_mutex; /* protect the fields above */
+ struct rw_semaphore lock_sem; /* protect the fields above */
/* BB add in lists for dirty pages i.e. write caching info for oplock */
struct list_head openFileList;
__u32 cifsAttrs; /* e.g. DOS archive bit, sparse, compressed, system */