From c2a24992636dfd2b51cd26a9bb54718438b2d74c Mon Sep 17 00:00:00 2001 From: Matt Benjamin Date: Sun, 20 Dec 2015 13:14:41 -0500 Subject: [PATCH] xio: avoid conversion warning w/xio_queue_depth Signed-off-by: Matt Benjamin --- src/msg/xio/XioMessenger.cc | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) 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} -- 2.47.3