]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
osd: simplify pg write mode transitions
authorSage Weil <sage@newdream.net>
Wed, 27 Jan 2010 00:35:11 +0000 (16:35 -0800)
committerSage Weil <sage@newdream.net>
Wed, 27 Jan 2010 00:35:11 +0000 (16:35 -0800)
commit8b42318b89123da536691021b065e20b2b13645c
treea46f2431c6588f3eba2acb5e57c3b8e86dc440e0
parente6683d799e5fa1cd937a74cc8b788082e2e34b4c
osd: simplify pg write mode transitions

There is no reason to track client on the per-pg AccessMode, since we only
care about read/write races on a per-object state, and need to track that
per-object anyway due to the new async commit/apply model.  (Though this
is semi-broken even without that...)

Currently we will move from delayed to rmw, but there is no rmw->delayed
transition, since the logic for that is a bit more complex.. it'll be
difficult to determine when it is really a win.

In general, though, RMW is probably a better all around policy!
src/TODO
src/osd/ReplicatedPG.h