]> git.michaelhowe.org Git - packages/o/openafs.git/commit
ubik: Fix buffers for reading-during-writes
authorAndrew Deason <adeason@sinenomine.net>
Tue, 22 Jun 2010 19:36:42 +0000 (14:36 -0500)
committerDerrick Brashear <shadow@dementix.org>
Wed, 14 Dec 2011 18:52:55 +0000 (10:52 -0800)
commit355a5dd65b2f3954833e060d83ceeb6db661c576
tree2e94f9b0be9dce7a23af34bf430c1f785fac874e
parenta4a5e8baf50f9e550bfa7ba0b8f7229a7f7fa7a2
ubik: Fix buffers for reading-during-writes

If we are reading while a write transaction is in progress, we can
encounter a buffer that is dirty if we're on the same site as the
writer. Ignore these buffers for readers, since they contain
uncommitted changes. Then, when the writer commits, invalidate the
resultant duplicate buffer, if one exists.

Reviewed-on: http://gerrit.openafs.org/2231
Reviewed-by: Derrick Brashear <shadow@dementia.org>
Tested-by: Derrick Brashear <shadow@dementia.org>
(cherry picked from commit 570236dd55e79e8886b45f19cef59ec3fa9d53f6)

Change-Id: If83e077b99a77339377a36f1d1bac9182ef26e4f
Reviewed-on: http://gerrit.openafs.org/6260
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Derrick Brashear <shadow@dementix.org>
src/ubik/disk.c