]> git.karo-electronics.de Git - karo-tx-linux.git/commit
CIFS: Fix oplock break handling (try #2)
authorPavel Shilovsky <piastryyy@gmail.com>
Mon, 17 Jan 2011 17:15:44 +0000 (20:15 +0300)
committerAK <andi@firstfloor.org>
Thu, 31 Mar 2011 18:58:19 +0000 (11:58 -0700)
commitd63d8586fd2d38b7faa03938f7a9957f4f021427
treea758baffc7abf6ba094c25155490da50c3e94a7d
parent23816cabbcac4826dd62590edeb0518e318217a7
CIFS: Fix oplock break handling (try #2)

commit 12fed00de963433128b5366a21a55808fab2f756 upstream.

When we get oplock break notification we should set the appropriate
value of OplockLevel field in oplock break acknowledge according to
the oplock level held by the client in this time. As we only can have
level II oplock or no oplock in the case of oplock break, we should be
aware only about clientCanCacheRead field in cifsInodeInfo structure.

Signed-off-by: Pavel Shilovsky <piastryyy@gmail.com>
Signed-off-by: Steve French <sfrench@us.ibm.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Signed-off-by: Andi Kleen <ak@linux.intel.com>
fs/cifs/cifsproto.h
fs/cifs/cifssmb.c
fs/cifs/file.c