]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
xio: Fix out-of-order responses 3703/head
authorVu Pham <vu@mellanox.com>
Wed, 11 Feb 2015 10:36:11 +0000 (02:36 -0800)
committerVu Pham <vu@mellanox.com>
Wed, 11 Feb 2015 10:36:11 +0000 (02:36 -0800)
Without this clients received out-of-order responses from xio messenger

Signed-off-by: Raju.Kurunkad@sandisk.com
src/msg/xio/XioMessenger.cc

index 44ab40ba98ba193030d9da4adedf7ac8d085b770..f5c650673e310bd0c5ed64d5b5e6f32847384c68 100644 (file)
@@ -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);