ceph: stop sending FLUSHSNAPs when we hit a dirty capsnap
authorSage Weil <sage@newdream.net>
Tue, 14 Sep 2010 22:50:59 +0000 (15:50 -0700)
committerSage Weil <sage@newdream.net>
Tue, 14 Sep 2010 22:50:59 +0000 (15:50 -0700)
commitcfc0bf6640dfd0f43bf8bfec5a475284809baa4d
tree63ee1563bc9b844c48684e57ad03bc3c023014a2
parent8bef9239ee1a42eb37d3f83bacf6a75f019c028d
ceph: stop sending FLUSHSNAPs when we hit a dirty capsnap

Stop sending FLUSHSNAP messages when we hit a capsnap that has dirty_pages
or is still writing.  We'll send the newer capsnaps only after the older
ones complete.

Signed-off-by: Sage Weil <sage@newdream.net>
fs/ceph/caps.c