Use oplock argument rather than BATCH value.
Signed-off-by: Pavel Shilovsky <[email protected]>
---
fs/cifs/smb2pdu.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/fs/cifs/smb2pdu.c b/fs/cifs/smb2pdu.c
index 88ac69c..cee8f4d 100644
--- a/fs/cifs/smb2pdu.c
+++ b/fs/cifs/smb2pdu.c
@@ -896,7 +896,7 @@ SMB2_open(const unsigned int xid, struct cifs_tcon *tcon,
__le16 *path,
return rc;
if (server->oplocks)
- req->RequestedOplockLevel = SMB2_OPLOCK_LEVEL_BATCH;
+ req->RequestedOplockLevel = *oplock;
else
req->RequestedOplockLevel = SMB2_OPLOCK_LEVEL_NONE;
req->ImpersonationLevel = IL_IMPERSONATION;
--
1.7.1
--
To unsubscribe from this list: send the line "unsubscribe linux-cifs" in
the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html