]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
os/bluestore/BlockDevice: helpful error when aio cannot init
authorSage Weil <sage@redhat.com>
Tue, 22 Dec 2015 21:36:59 +0000 (16:36 -0500)
committerSage Weil <sage@redhat.com>
Fri, 1 Jan 2016 18:07:27 +0000 (13:07 -0500)
Signed-off-by: Sage Weil <sage@redhat.com>
src/os/bluestore/BlockDevice.cc

index 9af3bec3c34a55ddb541bda0c9a2ef41a5c107f9..3afc4d7c22247f8c544f4e4860ac382e222a65ae 100644 (file)
@@ -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;