]> git.michaelhowe.org Git - packages/o/openafs.git/commit
Cache bypass: Fix oops in bypass transition functions
authorMarc Dionne <marc.c.dionne@gmail.com>
Fri, 5 Nov 2010 00:49:41 +0000 (20:49 -0400)
committerDerrick Brashear <shadow@dementia.org>
Tue, 11 Jan 2011 20:24:16 +0000 (12:24 -0800)
commit5de4614c14f73b3d6d4b0da3ed87b6264b42332a
tree60f33bd3235cee15ccfd627286ea65899db34181
parent8adedcaf5822e88e230c6cd988083d4676251f88
Cache bypass: Fix oops in bypass transition functions

The FCSBypass flag might change between the time we check it before
entering afs_TransitionToCaching or afs_TransitionToBypass and when
we check it again within the functions.

Instead of panicing, just exit if someone beat us to it.  Also move
the checks within the write lock region to make sure the code
doesn't get run multiple times.

Reviewed-on: http://gerrit.openafs.org/3266
Reviewed-by: Jeffrey Altman <jaltman@openafs.org>
Tested-by: Marc Dionne <marc.c.dionne@gmail.com>
Reviewed-by: Derrick Brashear <shadow@dementia.org>
(cherry picked from commit f2c6ae300a211460c24c87752cf9400b9e61ee1f)

Change-Id: I3b7ad3f9672975a87dbe337256d42166fc638b34
Reviewed-on: http://gerrit.openafs.org/3639
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Derrick Brashear <shadow@dementia.org>
src/afs/afs_bypasscache.c