use local `cct` instead, more consistent this way
Signed-off-by: Kefu Chai <kchai@redhat.com>
#include "common/debug.h"
#include "common/numa.h"
-#include "global/global_context.h"
#include "kernel/io_uring.h"
extern "C" {
fd_directs.resize(WRITE_LIFE_MAX, -1);
fd_buffereds.resize(WRITE_LIFE_MAX, -1);
- bool use_ioring = g_ceph_context->_conf.get_val<bool>("bluestore_ioring");
+ bool use_ioring = cct->_conf.get_val<bool>("bluestore_ioring");
unsigned int iodepth = cct->_conf->bdev_aio_max_queue_depth;
if (use_ioring && ioring_queue_t::supported()) {