aboutsummaryrefslogtreecommitdiffstats
path: root/fs/cifs/smb2file.c
diff options
context:
space:
mode:
authorPavel Shilovsky <pshilovsky@samba.org>2013-07-04 18:41:09 +0400
committerSteve French <smfrench@gmail.com>2013-07-10 13:08:39 -0500
commit63eb3def3267a5744863801e8221898b0ba9d41d (patch)
tree7ebc846f2e66303d0b7228ae9cedf498d9bc1999 /fs/cifs/smb2file.c
parentCIFS: Simplify SMB2 create context handling (diff)
downloadlinux-dev-63eb3def3267a5744863801e8221898b0ba9d41d.tar.xz
linux-dev-63eb3def3267a5744863801e8221898b0ba9d41d.zip
CIFS: Request durable open for SMB2 opens
by passing durable context together with a handle caching lease or batch oplock. Signed-off-by: Pavel Shilovsky <pshilovsky@samba.org> Signed-off-by: Steven French <steven@steven-GA-970A-DS3.(none)>
Diffstat (limited to '')
-rw-r--r--fs/cifs/smb2file.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/cifs/smb2file.c b/fs/cifs/smb2file.c
index 46a4299b7ae8..150a9b1bc7fa 100644
--- a/fs/cifs/smb2file.c
+++ b/fs/cifs/smb2file.c
@@ -81,7 +81,7 @@ smb2_open_file(const unsigned int xid, struct cifs_tcon *tcon, const char *path,
}
desired_access |= FILE_READ_ATTRIBUTES;
- *smb2_oplock = SMB2_OPLOCK_LEVEL_EXCLUSIVE;
+ *smb2_oplock = SMB2_OPLOCK_LEVEL_BATCH;
if (tcon->ses->server->capabilities & SMB2_GLOBAL_CAP_LEASING)
memcpy(smb2_oplock + 1, fid->lease_key, SMB2_LEASE_KEY_SIZE);