From cff5dc5d12599aa93a5e4dea911300e98811dc91 Mon Sep 17 00:00:00 2001 From: Sage Weil Date: Tue, 22 Dec 2015 16:36:59 -0500 Subject: [PATCH] os/bluestore/BlockDevice: helpful error when aio cannot init Signed-off-by: Sage Weil --- src/os/bluestore/BlockDevice.cc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/os/bluestore/BlockDevice.cc b/src/os/bluestore/BlockDevice.cc index 9af3bec3c34a5..3afc4d7c22247 100644 --- a/src/os/bluestore/BlockDevice.cc +++ b/src/os/bluestore/BlockDevice.cc @@ -183,8 +183,10 @@ int BlockDevice::_aio_start() if (g_conf->bdev_aio) { dout(10) << __func__ << dendl; int r = aio_queue.init(); - if (r < 0) + if (r < 0) { + derr << __func__ << " failed: " << cpp_strerror(r) << dendl; return r; + } aio_thread.create(); } return 0; -- 2.39.5