0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-12-27 07:54:05 +01:00

ircd::fs::aio: Move the slice_usage_warning closer to SYS_io_submit.

This commit is contained in:
Jason Volk 2019-03-15 19:11:46 -07:00
parent 20716634a8
commit 64959387bb

View file

@ -647,13 +647,6 @@ try
assert(qcount > 0); assert(qcount > 0);
assert(in_flight + qcount <= MAX_EVENTS); assert(in_flight + qcount <= MAX_EVENTS);
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 const bool idle
{ {
in_flight == 0 in_flight == 0
@ -703,6 +696,13 @@ size_t
ircd::fs::aio::system::io_submit() ircd::fs::aio::system::io_submit()
try try
{ {
const ctx::slice_usage_warning message
{
"fs::aio::system::submit(in_flight:%zu qcount:%zu)",
in_flight,
qcount
};
return syscall<SYS_io_submit>(idp, qcount, queue.data()); return syscall<SYS_io_submit>(idp, qcount, queue.data());
} }
catch(const std::system_error &e) catch(const std::system_error &e)