CIFS: Don't let read only caching for mandatory byte-range locked files
authorPavel Shilovsky <piastry@etersoft.ru>
Mon, 24 Dec 2012 10:41:19 +0000 (14:41 +0400)
committerSteve French <smfrench@gmail.com>
Wed, 2 Jan 2013 05:04:30 +0000 (23:04 -0600)
commit63b7d3a41ccadef971a4ffbe6662119d4275ebf9
tree02ccbd85b5628cc1cb4cb982c74514fe8d851fdb
parent88cf75aaaf27a652b3e85960ac3060172dd3edac
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>
fs/cifs/cifsglob.h
fs/cifs/file.c
fs/cifs/smb1ops.c
fs/cifs/smb2ops.c