Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 175984
b: refs/heads/master
c: bcb5616
h: refs/heads/master
v: v3
  • Loading branch information
Trond Myklebust authored and Trond Myklebust committed Dec 6, 2009
1 parent 834c4cd commit a6a24b3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 35dc1d74a8d97a302a202ccb6751bf2bdbf5173e
refs/heads/master: bcb56164ceb21317208eee89c829580d51b84a6d
7 changes: 3 additions & 4 deletions trunk/fs/nfs/nfs4proc.c
Original file line number Diff line number Diff line change
Expand Up @@ -332,7 +332,7 @@ nfs4_free_slot(struct nfs4_slot_table *tbl, u8 free_slotid)
/* update highest_used_slotid when it is freed */
if (slotid == tbl->highest_used_slotid) {
slotid = find_last_bit(tbl->used_slots, tbl->max_slots);
if (slotid >= 0 && slotid < tbl->max_slots)
if (slotid < tbl->max_slots)
tbl->highest_used_slotid = slotid;
else
tbl->highest_used_slotid = -1;
Expand Down Expand Up @@ -363,9 +363,8 @@ static void nfs41_sequence_free_slot(const struct nfs_client *clp,
dprintk("%s COMPLETE: Session Drained\n", __func__);
complete(&clp->cl_session->complete);
}
} else {
} else
rpc_wake_up_next(&tbl->slot_tbl_waitq);
}
spin_unlock(&tbl->slot_tbl_lock);
res->sr_slotid = NFS4_MAX_SLOT_TABLE;
}
Expand Down Expand Up @@ -469,9 +468,9 @@ static int nfs41_setup_sequence(struct nfs4_session *session,
* The state manager will wait until the slot table is empty.
* Schedule the reset thread
*/
dprintk("%s Schedule Session Reset\n", __func__);
rpc_sleep_on(&tbl->slot_tbl_waitq, task, NULL);
spin_unlock(&tbl->slot_tbl_lock);
dprintk("%s Schedule Session Reset\n", __func__);
return -EAGAIN;
}

Expand Down

0 comments on commit a6a24b3

Please sign in to comment.