NFS4.1: Fix bug server don't reply the right fore_channel to client at create_session
authorMi Jinlong <mijinlong@cn.fujitsu.com>
Thu, 11 Nov 2010 10:03:40 +0000 (18:03 +0800)
committerJ. Bruce Fields <bfields@redhat.com>
Fri, 19 Nov 2010 23:35:12 +0000 (18:35 -0500)
commit1205065764f2eda3216ebe213143f69891ee3460
tree55337dfc281fa65ea014cd9567cb8aa75ef74f18
parentced6dfe9fc7128995c6d60627938944b430d82c8
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: Benny Halevy <bhalevy@panasas.com>
Signed-off-by: Mi Jinlong <mijinlong@cn.fujitsu.com>
Signed-off-by: J. Bruce Fields <bfields@redhat.com>
fs/nfsd/nfs4state.c