Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 282936
b: refs/heads/master
c: aabd0b4
h: refs/heads/master
v: v3
  • Loading branch information
Andy Adamson authored and Trond Myklebust committed Jan 5, 2012
1 parent 46471fc commit 7cb6eff
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 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: aacd5537270a752fe12a9914a207284fc2341c6d
refs/heads/master: aabd0b40b327d5c6518c8c908819b9bf864ad56a
5 changes: 2 additions & 3 deletions trunk/fs/nfs/nfs4proc.c
Original file line number Diff line number Diff line change
Expand Up @@ -363,9 +363,8 @@ static void renew_lease(const struct nfs_server *server, unsigned long timestamp
* Must be called while holding tbl->slot_tbl_lock
*/
static void
nfs4_free_slot(struct nfs4_slot_table *tbl, struct nfs4_slot *free_slot)
nfs4_free_slot(struct nfs4_slot_table *tbl, u8 free_slotid)
{
int free_slotid = free_slot - tbl->slots;
int slotid = free_slotid;

BUG_ON(slotid < 0 || slotid >= NFS4_MAX_SLOT_TABLE);
Expand Down Expand Up @@ -430,7 +429,7 @@ static void nfs41_sequence_free_slot(struct nfs4_sequence_res *res)
}

spin_lock(&tbl->slot_tbl_lock);
nfs4_free_slot(tbl, res->sr_slot);
nfs4_free_slot(tbl, res->sr_slot - tbl->slots);
nfs4_check_drain_fc_complete(res->sr_session);
spin_unlock(&tbl->slot_tbl_lock);
res->sr_slot = NULL;
Expand Down

0 comments on commit 7cb6eff

Please sign in to comment.