]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
msg/async: clean up local buffers on dispatch 24387/head
authorGreg Farnum <gfarnum@redhat.com>
Fri, 14 Sep 2018 17:58:49 +0000 (10:58 -0700)
committerPrashant D <pdhange@redhat.com>
Tue, 2 Oct 2018 22:34:52 +0000 (18:34 -0400)
commitc07d804ea93191ae1525afdeb4d7eed9af3874c1
tree25d0564d66609c9cc1ba62f751a6b5b883dd3284
parentf394dfbf4d6e2bb306ee24d8929510e721ea9825
msg/async: clean up local buffers on dispatch

The AsyncConnection keeps local (member variable) bufferlists of incoming
messages before they're placed into the Message's front/data/middle buffers.
Previously these were reset only when a new Message is being received, which
means in steady state we store a full Message for every Connection even if
it's inactive!

Instead we obviously want to drop our local references to Message state
once it's been dispatched, so that it can go away.

Fixes: http://tracker.ceph.com/issues/35987
Signed-off-by: Greg Farnum <gfarnum@redhat.com>
(cherry picked from commit 47ed036753223c44c7bf66c64d4a4adfe7267c0a)
src/msg/async/AsyncConnection.cc