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:
parent
20716634a8
commit
64959387bb
1 changed files with 7 additions and 7 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue