]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
mds: Check for LOCK_MIX_STALE along with LOCK_MIX
authorGreg Farnum <gregf@hq.newdream.net>
Sat, 16 Oct 2010 00:05:24 +0000 (17:05 -0700)
committerGreg Farnum <gregf@hq.newdream.net>
Fri, 22 Oct 2010 22:51:23 +0000 (15:51 -0700)
commit512a1da9af5bbd87a0bb32581f6aaf78f37345d1
tree9b5e1a60645345910c63e9499a0afd339cca6cd3
parent557e7e34afb750230f34f532d3f60d3ed0a029f3
mds: Check for LOCK_MIX_STALE along with LOCK_MIX
LOCK_MIX_STALE precludes writing to the protected data, but
in general cases it's an acceptable state whenever LOCK_MIX is.

Add checks for LOCK_MIX_STALE to asserts and if statements that
match those for LOCK_MIX.
src/mds/CInode.cc
src/mds/Locker.cc