]> Pileus Git - ~andy/linux/commit
fix "disabling echoes and oplocks" on SMB2 mounts
authorSteve French <smfrench@gmail.com>
Sun, 9 Dec 2012 04:36:29 +0000 (22:36 -0600)
committerSteve French <smfrench@gmail.com>
Mon, 10 Dec 2012 01:47:15 +0000 (19:47 -0600)
commit6d8b59d712e95d257ee16f80b579677e5e1bf33c
tree59eb8b3148e4c5413fd9114645b3ac23f7a8b59c
parent38107d45cf452761a74fe512190e23f36834d6dd
fix "disabling echoes and oplocks" on SMB2 mounts

SMB2 and later will return only 1 credit for session setup (phase 1)
not just for the negotiate protocol response.  Do not disable
echoes and oplocks on session setup (we only need one credit
for tree connection anyway) as a resonse with only 1 credit
on phase 1 of sessionsetup is expected.

Fixes the "CIFS VFS: disabling echoes and oplocks" message
logged to dmesg.

Signed-off-by: Steve French <smfrench@gmail.com>
Acked-by: Jeff Layton <jlayton@samba.org>
fs/cifs/smb2pdu.c