0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-12-26 15:33:54 +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(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<SYS_io_submit>(idp, qcount, queue.data());
}
catch(const std::system_error &e)