summaryrefslogtreecommitdiffstats
path: root/fs/cifs/cifsglob.h
diff options
context:
space:
mode:
authorPavel Shilovsky <piastry@etersoft.ru>2012-12-24 14:41:19 +0400
committerSteve French <smfrench@gmail.com>2013-01-01 23:04:30 -0600
commit63b7d3a41ccadef971a4ffbe6662119d4275ebf9 (patch)
tree02ccbd85b5628cc1cb4cb982c74514fe8d851fdb /fs/cifs/cifsglob.h
parent88cf75aaaf27a652b3e85960ac3060172dd3edac (diff)
downloadtalos-obmc-linux-63b7d3a41ccadef971a4ffbe6662119d4275ebf9.tar.gz
talos-obmc-linux-63b7d3a41ccadef971a4ffbe6662119d4275ebf9.zip
CIFS: Don't let read only caching for mandatory byte-range locked files
If we have mandatory byte-range locks on a file we can't cache reads because pagereading may have conflicts with these locks on the server. That's why we should allow level2 oplocks for files without mandatory locks only. Signed-off-by: Pavel Shilovsky <piastry@etersoft.ru> Acked-by: Jeff Layton <jlayton@redhat.com> Signed-off-by: Steve French <smfrench@gmail.com>
Diffstat (limited to 'fs/cifs/cifsglob.h')
-rw-r--r--fs/cifs/cifsglob.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/cifs/cifsglob.h b/fs/cifs/cifsglob.h
index dfab450a191e..e6899cea1c35 100644
--- a/fs/cifs/cifsglob.h
+++ b/fs/cifs/cifsglob.h
@@ -386,6 +386,7 @@ struct smb_version_values {
unsigned int cap_unix;
unsigned int cap_nt_find;
unsigned int cap_large_files;
+ unsigned int oplock_read;
};
#define HEADER_SIZE(server) (server->vals->header_size)
OpenPOWER on IntegriCloud