LINUX: hold vcache while dropping dcache refs 06/12206/3
authorMichael Meffie <mmeffie@sinenomine.net>
Thu, 25 Feb 2016 23:49:20 +0000 (18:49 -0500)
committerBenjamin Kaduk <kaduk@mit.edu>
Wed, 13 Apr 2016 02:16:51 +0000 (22:16 -0400)
commit961875cbedc2c91cdba6dc34a43c6136ea9797fb
treec90ed9f51373f7fbeca4e402686f0d6b9936d7c2
parent3609ebcfa3f70ca7612364c0cc2345b1d7f1096b
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.

Change-Id: I9d91db98387b7aaa986ed915420c6cafb4f12438
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>
src/afs/LINUX/osi_vcache.c