Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 192333
b: refs/heads/master
c: 2067340
h: refs/heads/master
i:
  192331: 8503a89
v: v3
  • Loading branch information
Trond Myklebust authored and Trond Myklebust committed May 14, 2010
1 parent b810a2a commit 5d8ae25
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: 93a05e65c090dda9cbd79d0cf57b65c4dbd8da55
refs/heads/master: 20673406534176ead9b984a84b662928110f77b1
5 changes: 2 additions & 3 deletions trunk/net/sunrpc/auth.c
Original file line number Diff line number Diff line change
Expand Up @@ -236,6 +236,8 @@ rpcauth_prune_expired(struct list_head *free, int nr_to_scan)

list_for_each_entry_safe(cred, next, &cred_unused, cr_lru) {

if (nr_to_scan-- == 0)
break;
/*
* Enforce a 60 second garbage collection moratorium
* Note that the cred_unused list must be time-ordered.
Expand All @@ -255,11 +257,8 @@ rpcauth_prune_expired(struct list_head *free, int nr_to_scan)
get_rpccred(cred);
list_add_tail(&cred->cr_lru, free);
rpcauth_unhash_cred_locked(cred);
nr_to_scan--;
}
spin_unlock(cache_lock);
if (nr_to_scan == 0)
break;
}
return (number_cred_unused / 100) * sysctl_vfs_cache_pressure;
}
Expand Down

0 comments on commit 5d8ae25

Please sign in to comment.