]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
msg/async: avoid put message within write_lock 20731/head
authorHaomai Wang <haomai@xsky.com>
Tue, 6 Mar 2018 03:28:54 +0000 (11:28 +0800)
committerHaomai Wang <haomai@xsky.com>
Fri, 16 Mar 2018 14:36:16 +0000 (22:36 +0800)
commit83e249acdbaf330f613c297addb1c949ba750b4c
tree8dfb4d7911c8a6602ddc25af8eb7183d9bf5c0bd
parentc454b1d1d6d56b581257be95f8756f8628b87ad8
msg/async: avoid put message within write_lock

message deconstruct under busy env isn't a very short period, because cpu may
stuck into tcmalloc library to do gc.

from a rough bench(3k iops), reduce send_message latency from 54us to 37.5us. in
real env(higher iops), it should be much more better.

Signed-off-by: Haomai Wang <haomai@xsky.com>
src/msg/async/AsyncConnection.cc