Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 12050657 authored by Mi Jinlong's avatar Mi Jinlong Committed by J. Bruce Fields
Browse files

NFS4.1: Fix bug server don't reply the right fore_channel to client at create_session



At the latest kernel(2.6.37-rc1), server just initialize the forechannel
at init_forechannel_attrs, but don't reflect it to reply.

After initialize the session success, we should copy the forechannel info
to nfsd4_create_session struct.

Reviewed-by: default avatarBenny Halevy <bhalevy@panasas.com>
Signed-off-by: default avatarMi Jinlong <mijinlong@cn.fujitsu.com>
Signed-off-by: default avatarJ. Bruce Fields <bfields@redhat.com>
parent ced6dfe9
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -1562,6 +1562,8 @@ nfsd4_create_session(struct svc_rqst *rqstp,
	status = nfs_ok;
	memcpy(cr_ses->sessionid.data, new->se_sessionid.data,
	       NFS4_MAX_SESSIONID_LEN);
	memcpy(&cr_ses->fore_channel, &new->se_fchannel,
		sizeof(struct nfsd4_channel_attrs));
	cs_slot->sl_seqid++;
	cr_ses->seqid = cs_slot->sl_seqid;