NFSv4.1 set highest_used_slotid to NFS4_NO_SLOT
authorAndy Adamson <andros@netapp.com>
Fri, 17 Feb 2012 18:05:23 +0000 (13:05 -0500)
committerTrond Myklebust <Trond.Myklebust@netapp.com>
Fri, 17 Feb 2012 18:38:03 +0000 (13:38 -0500)
Signed-off-by: Andy Adamson <andros@netapp.com>
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
fs/nfs/nfs4state.c

index 4e37818a34ef79f83f93bc0852856c64e816fa17..c1111a37dc1447646aba98ef352aa77c8af33a29 100644 (file)
@@ -212,7 +212,7 @@ static void nfs4_end_drain_session(struct nfs_client *clp)
 static int nfs4_wait_on_slot_tbl(struct nfs4_slot_table *tbl)
 {
        spin_lock(&tbl->slot_tbl_lock);
-       if (tbl->highest_used_slotid != -1) {
+       if (tbl->highest_used_slotid != NFS4_NO_SLOT) {
                INIT_COMPLETION(tbl->complete);
                spin_unlock(&tbl->slot_tbl_lock);
                return wait_for_completion_interruptible(&tbl->complete);