From: Matt Benjamin Date: Sun, 20 Dec 2015 18:14:41 +0000 (-0500) Subject: xio: avoid conversion warning w/xio_queue_depth X-Git-Tag: v10.0.3~187^2~1 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=c2a24992636dfd2b51cd26a9bb54718438b2d74c;p=ceph.git xio: avoid conversion warning w/xio_queue_depth Signed-off-by: Matt Benjamin --- diff --git a/src/msg/xio/XioMessenger.cc b/src/msg/xio/XioMessenger.cc index d651800efdce..a920f7eabe3b 100644 --- a/src/msg/xio/XioMessenger.cc +++ b/src/msg/xio/XioMessenger.cc @@ -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}