]> git.baikalelectronics.ru Git - kernel.git/commit
ceph: only send one flushsnap per cap_snap per mds session
authorSage Weil <sage@newdream.net>
Fri, 17 Sep 2010 15:03:08 +0000 (08:03 -0700)
committerSage Weil <sage@newdream.net>
Fri, 17 Sep 2010 15:03:08 +0000 (08:03 -0700)
commit447fd17da5bc2587ef91a53398d60d5c92a265d3
tree1bf9bc86a2d1c3e9508dc304830a3bb42ad7de9b
parentff688ece06a63ea9821c7edd641ca54889f871b2
ceph: only send one flushsnap per cap_snap per mds session

Sending multiple flushsnap messages is problematic because we ignore
the response if the tid doesn't match, and the server may only respond to
each one once.  It's also a waste.

So, skip cap_snaps that are already on the flushing list, unless the caller
tells us to resend (because we are reconnecting).

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