diff options
author | Pavel Shilovsky <piastry@etersoft.ru> | 2012-12-24 14:41:19 +0400 |
---|---|---|
committer | Steve French <smfrench@gmail.com> | 2013-01-02 09:04:30 +0400 |
commit | 63b7d3a41ccadef971a4ffbe6662119d4275ebf9 (patch) | |
tree | 02ccbd85b5628cc1cb4cb982c74514fe8d851fdb /fs/cifs/smb1ops.c | |
parent | 88cf75aaaf27a652b3e85960ac3060172dd3edac (diff) | |
download | linux-63b7d3a41ccadef971a4ffbe6662119d4275ebf9.tar.xz |
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/smb1ops.c')
-rw-r--r-- | fs/cifs/smb1ops.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/cifs/smb1ops.c b/fs/cifs/smb1ops.c index dd79056c0581..47bc5a87f94e 100644 --- a/fs/cifs/smb1ops.c +++ b/fs/cifs/smb1ops.c @@ -959,4 +959,5 @@ struct smb_version_values smb1_values = { .cap_unix = CAP_UNIX, .cap_nt_find = CAP_NT_SMBS | CAP_NT_FIND, .cap_large_files = CAP_LARGE_FILES, + .oplock_read = OPLOCK_READ, }; |