summaryrefslogtreecommitdiff
path: root/include/linux/sunrpc
diff options
context:
space:
mode:
authorKinglong Mee <kinglongmee@gmail.com>2017-02-08 09:54:33 +0800
committerJ. Bruce Fields <bfields@redhat.com>2017-02-08 16:49:32 -0500
commit471a930ad7d1b868456e835a67169a661ec73f65 (patch)
tree0b4cc18a4de82c303aceaa5ab72511acf21ebace /include/linux/sunrpc
parent81fa3275f95ac357188fe3ca81b8e7c75360c88d (diff)
downloadlinux-next-471a930ad7d1b868456e835a67169a661ec73f65.tar.gz
SUNRPC: Drop all entries from cache_detail when cache_purge()
User always free the cache_detail after sunrpc_destroy_cache_detail(), so, it must cleanup up entries that left in the cache_detail, otherwise, NULL reference may be caused when using the left entries. Also, NeriBrown suggests "write a stand-alone cache_purge()." v3, move the cache_fresh_unlocked() out of write lock, v2, a stand-alone cache_purge(), not only for sunrpc_destroy_cache_detail Signed-off-by: Kinglong Mee <kinglongmee@gmail.com> Reviewed-by: NeilBrown <neilb@suse.com> Signed-off-by: J. Bruce Fields <bfields@redhat.com>
Diffstat (limited to 'include/linux/sunrpc')
0 files changed, 0 insertions, 0 deletions