]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
msgr: change the delay queue flushing semantics
authorGreg Farnum <greg@inktank.com>
Thu, 10 Apr 2014 23:32:56 +0000 (16:32 -0700)
committerGreg Farnum <greg@inktank.com>
Mon, 5 May 2014 22:29:16 +0000 (15:29 -0700)
commit09bf5e80d5b357dc11b37a498ecd31dce97e10e9
tree8888c92bb25a477b25b86a2ce2a707042f5eab19
parent69fc6b2b66a45c13c3ce4b65cf4ba2eecfdcf668
msgr: change the delay queue flushing semantics

Since we're doing fast_dispatch out of the delay queue, we don't want to
flush while holding the pipe lock. Instead, make flush set it up for instant
delivery, and steal the delay queue when replacing pipes. If we're shutting
down a pipe, wait until flushing has completed before doing so.

Signed-off-by: Greg Farnum <greg@inktank.com>
src/msg/Pipe.cc
src/msg/Pipe.h