]> git.michaelhowe.org Git - packages/o/openafs.git/commit
LINUX: hold vcache while dropping dcache refs
authorMichael Meffie <mmeffie@sinenomine.net>
Thu, 25 Feb 2016 23:49:20 +0000 (18:49 -0500)
committerStephan Wiesand <stephan.wiesand@desy.de>
Thu, 14 Apr 2016 11:02:58 +0000 (07:02 -0400)
commit440b518e6045e7cf2cd587dde38d95a29886aee3
tree2410bbc1709c414f659785b16f433d7c5207dd8b
parentfbd50cb0c4b955e4699d323f7d59e8c794956ce2
LINUX: hold vcache while dropping dcache refs

Hold a reference on a vcache while attempting to evict the inode from
the dcache. Since the afs_xvcache lock is dropped, it could be possible
for the vcache to be flushed during this time, making it unsafe to use
the vcache after the eviction attempt.

Reviewed-on: https://gerrit.openafs.org/12206
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Andrew Deason <adeason@dson.org>
Reviewed-by: Benjamin Kaduk <kaduk@mit.edu>
(cherry picked from commit 961875cbedc2c91cdba6dc34a43c6136ea9797fb)

Change-Id: I5beea5798f6cb10a00db90e1ba18dbc7ab1e43cb
Reviewed-on: https://gerrit.openafs.org/12256
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Stephan Wiesand <stephan.wiesand@desy.de>
src/afs/LINUX/osi_vcache.c