aboutsummaryrefslogtreecommitdiffstats
path: root/fs/cifs/cifsglob.h
diff options
context:
space:
mode:
authorPavel Shilovsky <pshilovsky@etersoft.ru>2012-09-19 09:22:44 -0400
committerSteve French <smfrench@gmail.com>2012-09-24 22:46:33 -0400
commit1b4b55a1d9404f51aacf1ff19887eb911484057d (patch)
treee2909277cc8db445c1d839c4859449a32cbfc08a /fs/cifs/cifsglob.h
parentb140799a11adb6023d5f96712874c37b71dab290 (diff)
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);
1000struct cifsInodeInfo { 1000struct cifsInodeInfo {
1001 bool can_cache_brlcks; 1001 bool can_cache_brlcks;
1002 struct list_head llist; /* locks helb by this inode */ 1002 struct list_head llist; /* locks helb by this inode */
1003 struct mutex lock_mutex; /* protect the fields above */ 1003 struct rw_semaphore lock_sem; /* protect the fields above */
1004 /* BB add in lists for dirty pages i.e. write caching info for oplock */ 1004 /* BB add in lists for dirty pages i.e. write caching info for oplock */
1005 struct list_head openFileList; 1005 struct list_head openFileList;
1006 __u32 cifsAttrs; /* e.g. DOS archive bit, sparse, compressed, system */ 1006 __u32 cifsAttrs; /* e.g. DOS archive bit, sparse, compressed, system */