]> bbs.cooldavid.org Git - net-next-2.6.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)
commite835124c2be289515b918f2688ced4249e2de566
tree1bf9bc86a2d1c3e9508dc304830a3bb42ad7de9b
parentae00d4f37f4df56821331deb1028748110dd6dc9
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