]> git.karo-electronics.de Git - mv-sheeva.git/commit
ceph: fix flushing of caps vs cap import
authorSage Weil <sage@newdream.net>
Tue, 18 Jan 2011 16:56:01 +0000 (08:56 -0800)
committerSage Weil <sage@newdream.net>
Wed, 19 Jan 2011 17:23:25 +0000 (09:23 -0800)
commit088b3f5e9ee2649f5cfc2f08d8ce654e3eeba310
treeca61373ee6eccd99a2af9a58ef492e099bacce3d
parent24be0c481067560b11441e794e27f166a3568863
ceph: fix flushing of caps vs cap import

If we are mid-flush and a cap is migrated to another node, we need to
resend the cap flush message to the new MDS, and do so with the original
flush_seq to avoid leaking across a sync boundary.  Previously we didn't
redo the flush (we only flushed newly dirty data), which would cause a
later sync to hang forever.

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