create_session uses compound_encode_send_decode()
send CREATE_SESSION with compound_encode_send_decode() instead of nfs41_send_compound() for its NFS4ERR_DELAY and NFS4ERR_STALE_CLIENTID handling added 'try_recovery' argument to nfs41_create_session(), which is passed on to compound_encode_send_decode(). nfs41_session_renew() uses try_recovery=FALSE, because it handles the NFS4ERR_STALE_CLIENTID error on its own. nfs41_session_create() uses try_recovery=TRUE to make use of the NFS4ERR_STALE_CLIENTID error handling. modified the NFS4ERR_STALE_CLIENTID block to call nfs41_client_renew() and retry the operation (i.e. CREATE_SESSION), instead of falling through to session recovery Signed-off-by: Casey Bodley <cbodley@citi.umich.edu>
This commit is contained in:
parent
f2095915aa
commit
757b637607
4 changed files with 30 additions and 56 deletions
|
|
@ -884,7 +884,8 @@ int nfs41_exchange_id(
|
|||
|
||||
int nfs41_create_session(
|
||||
IN nfs41_client *clnt,
|
||||
OUT nfs41_session *session);
|
||||
OUT nfs41_session *session,
|
||||
IN bool_t try_recovery);
|
||||
|
||||
enum nfsstat4 nfs41_bind_conn_to_session(
|
||||
IN nfs41_rpc_clnt *rpc,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue