aboutsummaryrefslogtreecommitdiffstats
path: root/fs/nfs/nfs4session.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/nfs/nfs4session.c')
-rw-r--r--fs/nfs/nfs4session.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/fs/nfs/nfs4session.c b/fs/nfs/nfs4session.c
index a5489d70a724..bcb532def9e2 100644
--- a/fs/nfs/nfs4session.c
+++ b/fs/nfs/nfs4session.c
@@ -55,7 +55,7 @@ static void nfs4_shrink_slot_table(struct nfs4_slot_table *tbl, u32 newsize)
55 55
56/** 56/**
57 * nfs4_slot_tbl_drain_complete - wake waiters when drain is complete 57 * nfs4_slot_tbl_drain_complete - wake waiters when drain is complete
58 * @tbl - controlling slot table 58 * @tbl: controlling slot table
59 * 59 *
60 */ 60 */
61void nfs4_slot_tbl_drain_complete(struct nfs4_slot_table *tbl) 61void nfs4_slot_tbl_drain_complete(struct nfs4_slot_table *tbl)
@@ -110,6 +110,8 @@ static struct nfs4_slot *nfs4_new_slot(struct nfs4_slot_table *tbl,
110 slot->table = tbl; 110 slot->table = tbl;
111 slot->slot_nr = slotid; 111 slot->slot_nr = slotid;
112 slot->seq_nr = seq_init; 112 slot->seq_nr = seq_init;
113 slot->seq_nr_highest_sent = seq_init;
114 slot->seq_nr_last_acked = seq_init - 1;
113 } 115 }
114 return slot; 116 return slot;
115} 117}
@@ -276,7 +278,8 @@ static void nfs4_reset_slot_table(struct nfs4_slot_table *tbl,
276 p = &tbl->slots; 278 p = &tbl->slots;
277 while (*p) { 279 while (*p) {
278 (*p)->seq_nr = ivalue; 280 (*p)->seq_nr = ivalue;
279 (*p)->interrupted = 0; 281 (*p)->seq_nr_highest_sent = ivalue;
282 (*p)->seq_nr_last_acked = ivalue - 1;
280 p = &(*p)->next; 283 p = &(*p)->next;
281 } 284 }
282 tbl->highest_used_slotid = NFS4_NO_SLOT; 285 tbl->highest_used_slotid = NFS4_NO_SLOT;