From: Vu Pham Date: Wed, 11 Feb 2015 10:36:11 +0000 (-0800) Subject: xio: Fix out-of-order responses X-Git-Tag: v0.93~52^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=807cf57abdba5c4b5626399815baa011fc3083db;p=ceph.git xio: Fix out-of-order responses Without this clients received out-of-order responses from xio messenger Signed-off-by: Raju.Kurunkad@sandisk.com --- diff --git a/src/msg/xio/XioMessenger.cc b/src/msg/xio/XioMessenger.cc index 44ab40ba98ba..f5c650673e31 100644 --- a/src/msg/xio/XioMessenger.cc +++ b/src/msg/xio/XioMessenger.cc @@ -756,6 +756,7 @@ int XioMessenger::_send_message_impl(Message* m, XioConnection* xcon) int code = 0; static uint32_t nreqs; + Mutex::Locker l(xcon->lock); if (unlikely(XioPool::trace_mempool)) { if (unlikely((++nreqs % 65536) == 0)) { xp_stats.dump(__func__, nreqs);