From 64959387bbeabc768242be6d4dd0d1b5aafed1cc Mon Sep 17 00:00:00 2001 From: Jason Volk Date: Fri, 15 Mar 2019 19:11:46 -0700 Subject: [PATCH] ircd::fs::aio: Move the slice_usage_warning closer to SYS_io_submit. --- ircd/fs_aio.cc | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/ircd/fs_aio.cc b/ircd/fs_aio.cc index f32de554b..450ee5cb7 100644 --- a/ircd/fs_aio.cc +++ b/ircd/fs_aio.cc @@ -647,13 +647,6 @@ try assert(qcount > 0); assert(in_flight + qcount <= MAX_EVENTS); assert(in_flight + qcount <= max_events()); - const ctx::slice_usage_warning message - { - "fs::aio::system::submit(in_flight:%zu qcount:%zu)", - in_flight, - qcount - }; - const bool idle { in_flight == 0 @@ -703,6 +696,13 @@ size_t ircd::fs::aio::system::io_submit() try { + const ctx::slice_usage_warning message + { + "fs::aio::system::submit(in_flight:%zu qcount:%zu)", + in_flight, + qcount + }; + return syscall(idp, qcount, queue.data()); } catch(const std::system_error &e)