Skip to content

Commit

Permalink
fix "disabling echoes and oplocks" on SMB2 mounts
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Steve French committed Dec 10, 2012
1 parent 38107d4 commit 6d8b59d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion fs/cifs/smb2pdu.c
Original file line number Diff line number Diff line change
Expand Up @@ -612,7 +612,8 @@ SMB2_sess_setup(const unsigned int xid, struct cifs_ses *ses,

/* BB add code to build os and lm fields */

rc = SendReceive2(xid, ses, iov, 2, &resp_buftype, CIFS_LOG_ERROR);
rc = SendReceive2(xid, ses, iov, 2, &resp_buftype,
CIFS_LOG_ERROR | CIFS_NEG_OP);

kfree(security_blob);
rsp = (struct smb2_sess_setup_rsp *)iov[0].iov_base;
Expand Down

0 comments on commit 6d8b59d

Please sign in to comment.