Commit 7e9f0738 authored by Trond Myklebust's avatar Trond Myklebust

NFSv4.1: Always set up a forward channel when binding the session

Currently, the client requests a back channel or a bidirectional
connection when binding a new TCP channel to an existing session.
Fix that to ask for a forward channel or bidirectional.
Signed-off-by: default avatarTrond Myklebust <trond.myklebust@primarydata.com>
parent b1c0df5f
...@@ -1724,7 +1724,7 @@ static void encode_bind_conn_to_session(struct xdr_stream *xdr, ...@@ -1724,7 +1724,7 @@ static void encode_bind_conn_to_session(struct xdr_stream *xdr,
decode_bind_conn_to_session_maxsz, hdr); decode_bind_conn_to_session_maxsz, hdr);
encode_opaque_fixed(xdr, session->sess_id.data, NFS4_MAX_SESSIONID_LEN); encode_opaque_fixed(xdr, session->sess_id.data, NFS4_MAX_SESSIONID_LEN);
p = xdr_reserve_space(xdr, 8); p = xdr_reserve_space(xdr, 8);
*p++ = cpu_to_be32(NFS4_CDFC4_BACK_OR_BOTH); *p++ = cpu_to_be32(NFS4_CDFC4_FORE_OR_BOTH);
*p = 0; /* use_conn_in_rdma_mode = False */ *p = 0; /* use_conn_in_rdma_mode = False */
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment