]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
mds: rewrite SimpleLock using generic state specifications; new xlock semantics
authorSage Weil <sage@newdream.net>
Thu, 15 Jan 2009 20:41:30 +0000 (12:41 -0800)
committerSage Weil <sage@newdream.net>
Fri, 16 Jan 2009 00:27:28 +0000 (16:27 -0800)
commit3eabcec0d46af130de22d2ca46829890226a5e49
treed008931dbe06d4e91919bab90dc87e56145620be
parent31bc1b0ae98135f4cc103cf70178271b8c19a0ae
mds: rewrite SimpleLock using generic state specifications; new xlock semantics

Same client can re-xlock an item (or read_projected) if the prior
locker set_xlock_done().  Move from XLOCKDONE to either SYNC or
LOCK, depending on whether read leases/locks have been issued.

Still need to convert FileLock and ScatterLock to use the new
state machine specification.  (This will probably make those lock
types mostly go away.)
12 files changed:
src/Makefile.am
src/TODO
src/include/ceph_fs.h
src/mds/CDentry.h
src/mds/FileLock.h
src/mds/Locker.cc
src/mds/MDCache.cc
src/mds/ScatterLock.h
src/mds/Server.cc
src/mds/SimpleLock.h
src/mds/locks.c [new file with mode: 0644]
src/mds/locks.h [new file with mode: 0644]