]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
xio: thread name must be less than 16 chars
authorRoi Dayan <roid@mellanox.com>
Thu, 4 Feb 2016 14:10:40 +0000 (16:10 +0200)
committerRoi Dayan <roid@mellanox.com>
Thu, 11 Feb 2016 06:54:32 +0000 (08:54 +0200)
portal_id string can pass the 16 chars thread name limit so
we can't use it.

Signed-off-by: Roi Dayan <roid@mellanox.com>
src/msg/xio/XioPortal.h

index 3bbc31bddada7d53a640147ab2cb0e11b6e2730c..04e16d22a7e940ba08416d81fb2a4d1e738ab8bb 100644 (file)
@@ -16,6 +16,8 @@
 #ifndef XIO_PORTAL_H
 #define XIO_PORTAL_H
 
+#include <string>
+
 extern "C" {
 #include "libxio.h"
 }
@@ -427,8 +429,10 @@ public:
     }
 
     for (p_ix = 0; p_ix < nportals; ++p_ix) {
+      string thread_name = "ms_xio_";
+      thread_name.append(std::to_string(p_ix));
       portal = portals[p_ix];
-      portal->create(portal->portal_id);
+      portal->create(thread_name.c_str());
     }
   }