]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
mds: fix lock->sync rdlock rule
authorSage Weil <sage@newdream.net>
Mon, 3 May 2010 21:00:28 +0000 (14:00 -0700)
committerSage Weil <sage@newdream.net>
Mon, 3 May 2010 21:00:28 +0000 (14:00 -0700)
commit2e2b2eed9e233fd24291a2ea423452a1cd537ef6
tree3fd8b93faf816ae9136cd32eb795afe460899d1c
parentfac9512f0f4e2900a14b48997598a65e0f79f0d6
mds: fix lock->sync rdlock rule

Observed symptom was touch foo on one node, and missing from ls on another
node.

Since auth rdlock isn't allowed for LOCk, it clearly shouldn't be for
LOCK->SYNC while e.g. wrlock modifications are still being flushed to the
journal and aren't yet applied.
src/mds/locks.c