aboutsummaryrefslogtreecommitdiffstats
path: root/fs
diff options
context:
space:
mode:
authorAndy Adamson <andros@netapp.com>2012-02-17 13:05:23 -0500
committerTrond Myklebust <Trond.Myklebust@netapp.com>2012-02-17 13:38:03 -0500
commitb6bf6e7d6f6fae1ddcae9e02dfe676bdc8fe892c (patch)
treecf7b9ee68592ef5fc145999405e70c6f537f56d3 /fs
parentnfs: Clean up debugging in nfs_follow_mountpoint() (diff)
downloadlinux-dev-b6bf6e7d6f6fae1ddcae9e02dfe676bdc8fe892c.tar.xz
linux-dev-b6bf6e7d6f6fae1ddcae9e02dfe676bdc8fe892c.zip
NFSv4.1 set highest_used_slotid to NFS4_NO_SLOT
Signed-off-by: Andy Adamson <andros@netapp.com> Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Diffstat (limited to 'fs')
-rw-r--r--fs/nfs/nfs4state.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/nfs/nfs4state.c b/fs/nfs/nfs4state.c
index 4e37818a34ef..c1111a37dc14 100644
--- a/fs/nfs/nfs4state.c
+++ b/fs/nfs/nfs4state.c
@@ -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);