always prefer using the local one, for better readability and
testability.
Signed-off-by: Kefu Chai <kchai@redhat.com>
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()) {