nfsd4: consistent session flag setting
Subsystems (2)
PATCH 1/1 nfsd4: consistent session flag setting
We should clear these flags on any new create_session, not just on the first one.
Signed-off-by J. Bruce Fields <[email protected]>
fs/nfsd/nfs4state.c +6 -6
@@ -1308,12 +1308,6 @@ nfsd4_create_session(struct svc_rqst *rqstp, cs_slot->sl_seqid++;/* from 0 to 1 */ move_to_confirmed (unconf); -/* -* We do not support RDMA or persistent sessions -*/ - cr_ses->flags &= ~SESSION4_PERSIST ; - cr_ses->flags &= ~SESSION4_RDMA ; -if (cr_ses->flags &SESSION4_BACK_CHAN ) { unconf->cl_cb_conn.cb_xprt = rqstp->rq_xprt; unconf->cl_xpt_user.callback = nfsd4_backchannel_lost;
@@ -1334,6 +1328,12 @@ nfsd4_create_session(struct svc_rqst *rqstp, goto out; } +/* +* We do not support RDMA or persistent sessions +*/ + cr_ses->flags &= ~SESSION4_PERSIST ; + cr_ses->flags &= ~SESSION4_RDMA ; + status =alloc_init_session (rqstp, conf, cr_ses);if (status) goto out;