]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
mds: do not allow GLAZYIO in mix->sync state
authorSage Weil <sage@inktank.com>
Sat, 6 Jul 2013 16:21:47 +0000 (09:21 -0700)
committerSage Weil <sage@inktank.com>
Fri, 11 Oct 2013 17:48:14 +0000 (10:48 -0700)
commitebb9b0cb7e4ab60fdbbc410ecfb35e51cf11434d
treee66cd1df112e493b430e2d6db7760315e0de7dba
parent33da08f683d40f33061cefa0cf145f3ff21ea089
mds: do not allow GLAZYIO in mix->sync state

GLAZYIO is not allowed in SYNC, so we cannot allow it in the preceding
gather state.

I verified the other GLAZYIO rules look ok.  We should make a validater
to confirm that no gather state includes caps that its target state
does not... or at least assert as much in eval_gather().

Backport: cuttlefish
Signed-off-by: Sage Weil <sage@inktank.com>
(cherry picked from commit b88938e5a646fbf175a7135e872bcb2d1afafbb8)
src/mds/locks.c