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:

committed by
Steve French

parent
b140799a11
commit
1b4b55a1d9
@@ -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
|
||||
|
Reference in New Issue
Block a user