Commit 51226ecc authored by Konstantin Baev's avatar Konstantin Baev

Bugfix near removing oplock part in kernels 27 and 28

parent 8749c706
...@@ -970,9 +970,6 @@ static int cifs_oplock_thread(void *dummyarg) ...@@ -970,9 +970,6 @@ static int cifs_oplock_thread(void *dummyarg)
to server still is disconnected since oplock to server still is disconnected since oplock
already released by the server in that case */ already released by the server in that case */
if (!pTcon->need_reconnect) { if (!pTcon->need_reconnect) {
/* PV: disable caching if oplock missed */
CIFS_I(inode)->clientCanCacheRead = false;
CIFS_I(inode)->clientCanCacheAll = false;
rc = CIFSSMBLock(0, pTcon, netfid, rc = CIFSSMBLock(0, pTcon, netfid,
0 /* len */ , 0 /* offset */, 0, 0 /* len */ , 0 /* offset */, 0,
0, LOCKING_ANDX_OPLOCK_RELEASE, 0, LOCKING_ANDX_OPLOCK_RELEASE,
......
...@@ -1016,9 +1016,6 @@ static int cifs_oplock_thread(void *dummyarg) ...@@ -1016,9 +1016,6 @@ static int cifs_oplock_thread(void *dummyarg)
to server still is disconnected since oplock to server still is disconnected since oplock
already released by the server in that case */ already released by the server in that case */
if (!pTcon->need_reconnect) { if (!pTcon->need_reconnect) {
+ /* PV: disable caching if oplock missed */
+ CIFS_I(inode)->clientCanCacheRead = false;
+ CIFS_I(inode)->clientCanCacheAll = false;
rc = CIFSSMBLock(0, pTcon, netfid, rc = CIFSSMBLock(0, pTcon, netfid,
0 /* len */ , 0 /* offset */, 0, 0 /* len */ , 0 /* offset */, 0,
0, LOCKING_ANDX_OPLOCK_RELEASE, 0, LOCKING_ANDX_OPLOCK_RELEASE,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment