]> git.baikalelectronics.ru Git - kernel.git/commit
CIFS: Reset read oplock to NONE if we have mandatory locks after reopen
authorPavel Shilovsky <pshilov@microsoft.com>
Tue, 11 Oct 2016 22:34:07 +0000 (15:34 -0700)
committerSteve French <smfrench@gmail.com>
Fri, 14 Oct 2016 00:48:59 +0000 (19:48 -0500)
commit4c0a83a62fc6dc6c3062f46aacf322ef58bac501
tree472bb2dd2be1ffcb96d6a7edd25e1831ad32fcd9
parentbf58bb8acdaee18d6e7b0d464ef3851fed445a5b
CIFS: Reset read oplock to NONE if we have mandatory locks after reopen

We are already doing the same thing for an ordinary open case:
we can't keep read oplock on a file if we have mandatory byte-range
locks because pagereading can conflict with these locks on a server.
Fix it by setting oplock level to NONE.

Signed-off-by: Pavel Shilovsky <pshilov@microsoft.com>
Signed-off-by: Steve French <smfrench@gmail.com>
fs/cifs/file.c