]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
xio: avoid conversion warning w/xio_queue_depth
authorMatt Benjamin <mbenjamin@redhat.com>
Sun, 20 Dec 2015 18:14:41 +0000 (13:14 -0500)
committerMatt Benjamin <mbenjamin@redhat.com>
Sun, 20 Dec 2015 18:14:41 +0000 (13:14 -0500)
Signed-off-by: Matt Benjamin <mbenjamin@redhat.com>
src/msg/xio/XioMessenger.cc

index d651800efdce8089718d6baecc4ba1ca0748cc39..a920f7eabe3bc70f4b3083483f8e16cc2090437f 100644 (file)
@@ -319,12 +319,13 @@ XioMessenger::XioMessenger(CephContext *cct, entity_name_t name,
       xio_set_opt(NULL, XIO_OPTLEVEL_ACCELIO, XIO_OPTNAME_MAX_INLINE_XIO_HEADER,
                  &xopt, sizeof(xopt));
 
+      size_t queue_depth = cct->_conf->xio_queue_depth;
       struct xio_mempool_config mempool_config = {
         6,
         {
-          {1024,  0,  cct->_conf->xio_queue_depth,  262144},
-          {4096,  0,  cct->_conf->xio_queue_depth,  262144},
-          {16384, 0,  cct->_conf->xio_queue_depth,  262144},
+          {1024,  0,  queue_depth,  262144},
+          {4096,  0,  queue_depth,  262144},
+          {16384, 0,  queue_depth,  262144},
           {65536, 0,  128,  65536},
           {262144, 0,  32,  16384},
           {1048576, 0, 8,  8192}