]> git.michaelhowe.org Git - packages/o/openafs.git/commit
afs: discard cached state when we are unsure of validity
authorDerrick Brashear <shadow@dementix.org>
Wed, 4 Jan 2012 20:04:41 +0000 (15:04 -0500)
committerDerrick Brashear <shadow@dementix.org>
Mon, 9 Jan 2012 02:16:13 +0000 (18:16 -0800)
commit3d4c44b61d035f9249a341d29cd93948f3ea3ec3
tree00764bfde706bef32a607005445d6a480c4f3d18
parent6479bb29d494077f31d0ddc3d165164b302b2e3f
afs: discard cached state when we are unsure of validity

in the event we got a network error, we don't know if the server
completed (or will complete) our operation. we can assume nothing.
a more complicated version of this could attempt to verify that the
state is what we expect it to be, but in extended callbacks universe
this is potentially easier to solve anyway. for now, return the
error to the caller, and mark the vcache unstat'd.

(cherry picked from commit c2fc7e0f66621fc97f5b4dc389d379260638315c)

Change-Id: Ic38cf16e47664e6f36ad614735b42d3f4e5a6ce2
Reviewed-on: http://gerrit.openafs.org/6520
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Derrick Brashear <shadow@dementix.org>
src/afs/afs_analyze.c
src/afs/afs_stats.h