Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 359739
b: refs/heads/master
c: 1ac8362
h: refs/heads/master
i:
  359737: ed9a0ba
  359735: af8d1e7
v: v3
  • Loading branch information
Jeff Layton authored and J. Bruce Fields committed Feb 15, 2013
1 parent b489892 commit 3533958
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 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: d94af6dea9cd680fb795dbc409a7360f1c63dc34
refs/heads/master: 1ac8362977b9ec75779170ac3074c7b36ab19b82
7 changes: 5 additions & 2 deletions trunk/fs/nfsd/nfscache.c
Original file line number Diff line number Diff line change
Expand Up @@ -302,8 +302,10 @@ nfsd_cache_search(struct svc_rqst *rqstp, __wsum csum)

/*
* Try to find an entry matching the current call in the cache. When none
* is found, we grab the oldest unlocked entry off the LRU list.
* Note that no operation within the loop may sleep.
* is found, we try to grab the oldest expired entry off the LRU list. If
* a suitable one isn't there, then drop the cache_lock and allocate a
* new one, then search again in case one got inserted while this thread
* didn't hold the lock.
*/
int
nfsd_cache_lookup(struct svc_rqst *rqstp)
Expand Down Expand Up @@ -344,6 +346,7 @@ nfsd_cache_lookup(struct svc_rqst *rqstp)
}
}

/* Drop the lock and allocate a new entry */
spin_unlock(&cache_lock);
rp = nfsd_reply_cache_alloc();
if (!rp) {
Expand Down

0 comments on commit 3533958

Please sign in to comment.