diff options
author | NeilBrown <neilb@suse.de> | 2006-03-27 09:15:07 (GMT) |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2006-03-27 16:44:42 (GMT) |
commit | 4013edea9a0b6cdcb1fdf5d4011e47e068fd6efb (patch) | |
tree | 19ea135919b899ba11552c155c4b403ed38204da /fs | |
parent | f9ecc921b5b5e135050e7f22fef873c249aee3fc (diff) | |
download | linux-4013edea9a0b6cdcb1fdf5d4011e47e068fd6efb.tar.xz |
[PATCH] knfsd: An assortment of little fixes to the sunrpc cache code
- in cache_check, h must be non-NULL as it has been de-referenced,
so don't bother checking for NULL.
- When a cache-item is updated, we need to call cache_revisit_request to see
if there is a pending request waiting for that item. We were using
a transition to CACHE_VALID to see if that was needed, however that is
wrong as an expired entry will still be marked 'valid' (as the data is valid
and will need to be released). So instead use an off transition for
CACHE_PENDING which is exactly the right thing to test.
- Add a little bit more debugging info.
Signed-off-by: Neil Brown <neilb@suse.de>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'fs')
0 files changed, 0 insertions, 0 deletions