cifs: take read lock on GlobalSMBSes_lock in is_valid_oplock_break
authorJeff Layton <jlayton@redhat.com>
Sat, 12 Sep 2009 15:54:29 +0000 (11:54 -0400)
committerSteve French <sfrench@us.ibm.com>
Tue, 15 Sep 2009 19:45:10 +0000 (19:45 +0000)
commit058daf4f6795fd23fcca41fe53151cdcbbd263ec
tree20efa19e535a71cded4ae965a26fe7bcd227525a
parent495e993745a722cfa54d76b97d18e8f30c3e6cea
cifs: take read lock on GlobalSMBSes_lock in is_valid_oplock_break

...rather than a write lock. It doesn't change the list so a read lock
should be sufficient.

Signed-off-by: Jeff Layton <jlayton@redhat.com>
Signed-off-by: Steve French <sfrench@us.ibm.com>
fs/cifs/misc.c