aboutsummaryrefslogtreecommitdiffstats
path: root/fs
diff options
context:
space:
mode:
authorTrond Myklebust <Trond.Myklebust@netapp.com>2012-10-29 16:48:40 -0400
committerTrond Myklebust <Trond.Myklebust@netapp.com>2012-11-01 12:02:03 -0400
commitf9b1ef5f06d65a01952169b67d474f7f0dcb0206 (patch)
tree994ecdcda085fc8624c3b8ed50cbc2b1e766fe46 /fs
parentd24bab93e42b1f90d89c86b3edbb81ec34bb9474 (diff)
NFSv4: Initialise the NFSv4.1 slot table highest_used_slotid correctly
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Diffstat (limited to 'fs')
-rw-r--r--fs/nfs/nfs4proc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/nfs/nfs4proc.c b/fs/nfs/nfs4proc.c
index 8cfbac1a8d5e..091baab3eccf 100644
--- a/fs/nfs/nfs4proc.c
+++ b/fs/nfs/nfs4proc.c
@@ -5677,7 +5677,7 @@ static void nfs4_add_and_init_slots(struct nfs4_slot_table *tbl,
5677 tbl->slots = new; 5677 tbl->slots = new;
5678 tbl->max_slots = max_slots; 5678 tbl->max_slots = max_slots;
5679 } 5679 }
5680 tbl->highest_used_slotid = -1; /* no slot is currently used */ 5680 tbl->highest_used_slotid = NFS4_NO_SLOT;
5681 for (i = 0; i < tbl->max_slots; i++) 5681 for (i = 0; i < tbl->max_slots; i++)
5682 tbl->slots[i].seq_nr = ivalue; 5682 tbl->slots[i].seq_nr = ivalue;
5683 spin_unlock(&tbl->slot_tbl_lock); 5683 spin_unlock(&tbl->slot_tbl_lock);