{
struct nfs4_session *session;
struct nfs4_slot *slot;
- unsigned long timestamp;
struct nfs_client *clp;
int ret = 1;
case 0:
/* Update the slot's sequence and clientid lease timer */
++slot->seq_nr;
- timestamp = slot->renewal_time;
clp = session->clp;
- do_renew_lease(clp, timestamp);
+ do_renew_lease(clp, res->sr_timestamp);
/* Check sequence flags */
if (res->sr_status_flags != 0)
nfs4_schedule_lease_recovery(clp);
* Could this slot have been previously retired?
* If so, then the server may be expecting seq_nr = 1!
*/
- if (slot->seq_nr == 1)
- break;
- slot->seq_nr = 1;
- goto retry_nowait;
+ if (slot->seq_nr != 1) {
+ slot->seq_nr = 1;
+ goto retry_nowait;
+ }
+ break;
case -NFS4ERR_SEQ_FALSE_RETRY:
++slot->seq_nr;
goto retry_nowait;
slot->slot_nr, slot->seq_nr);
res->sr_slot = slot;
+ res->sr_timestamp = jiffies;
res->sr_status_flags = 0;
/*
* sr_status is only set in decode_sequence, and so will remain
if (slotid > tbl->highest_used_slotid ||
tbl->highest_used_slotid == NFS4_NO_SLOT)
tbl->highest_used_slotid = slotid;
- ret->renewal_time = jiffies;
ret->generation = tbl->generation;
out:
if (nfs4_session_draining(tbl->session) && !args->sa_privileged)
return false;
- slot->renewal_time = jiffies;
slot->generation = tbl->generation;
args->sa_slot = slot;
+ res->sr_timestamp = jiffies;
res->sr_slot = slot;
res->sr_status_flags = 0;
res->sr_status = 1;
struct nfs4_sequence_res {
struct nfs4_slot *sr_slot; /* slot used to send request */
+ unsigned long sr_timestamp;
int sr_status; /* sequence operation status */
u32 sr_status_flags;
u32 sr_highest_slotid;