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>
This commit is contained in:
Pavel Shilovsky
2012-09-19 06:22:44 -07:00
committed by Steve French
parent b140799a11
commit 1b4b55a1d9
4 changed files with 41 additions and 38 deletions

View File

@@ -937,7 +937,7 @@ cifs_init_once(void *inode)
struct cifsInodeInfo *cifsi = inode;
inode_init_once(&cifsi->vfs_inode);
mutex_init(&cifsi->lock_mutex);
init_rwsem(&cifsi->lock_sem);
}
static int