summaryrefslogtreecommitdiff
path: root/net/Kconfig
diff options
context:
space:
mode:
authorJ. Bruce Fields <bfields@redhat.com>2011-01-03 15:10:27 -0500
committerJ. Bruce Fields <bfields@redhat.com>2011-01-04 16:49:24 -0500
commit6bab93f87ec703bf6650875881b11f9f27d7da56 (patch)
tree1042182b79c43747404fe91b03b3b958246c3a9c /net/Kconfig
parentda165dd60e136d0609e0a2c0c2a9b9a5372200d6 (diff)
svcrpc: take lock on turning entry NEGATIVE in cache_check
We attempt to turn a cache entry negative in place. But that entry may already have been filled in by some other task since we last checked whether it was valid, so we could be modifying an already-valid entry. If nothing else there's a likely leak in such a case when the entry is eventually put() and contents are not freed because it has CACHE_NEGATIVE set. So, take the cache_lock just as sunrpc_cache_update() does. Reviewed-by: NeilBrown <neilb@suse.de> Signed-off-by: J. Bruce Fields <bfields@redhat.com>
Diffstat (limited to 'net/Kconfig')
0 files changed, 0 insertions, 0 deletions