]> git.baikalelectronics.ru Git - kernel.git/commit
ceph: preserve seq # on requeued messages after transient transport errors
authorSage Weil <sage@newdream.net>
Wed, 12 May 2010 04:20:38 +0000 (21:20 -0700)
committerSage Weil <sage@newdream.net>
Wed, 12 May 2010 04:20:38 +0000 (21:20 -0700)
commit5a56a9e5d2fb09e44cd061df9f22c78b98939507
tree99a90ef86d38a51e39ed69af318e6cfe32023879
parent9076bda8de675bdeea0d84275dcd00d618d73003
ceph: preserve seq # on requeued messages after transient transport errors

If the tcp connection drops and we reconnect to reestablish a stateful
session (with the mds), we need to resend previously sent (and possibly
received) messages with the _same_ seq # so that they can be dropped on
the other end if needed.  Only assign a new seq once after the message is
queued.

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