* Submitting IO events with IORING_FEAT_NODROP and overflown CQ ring
@ 2024-05-03 23:21 Alexander Babayants
2024-05-05 18:11 ` Jens Axboe
0 siblings, 1 reply; 2+ messages in thread
From: Alexander Babayants @ 2024-05-03 23:21 UTC (permalink / raw)
To: io-uring
Hi!
Per io_uring_setup(2):
> IORING_FEAT_NODROP
...
> If this overflow condition is entered,
> attempting to submit more IO will fail with the -EBUSY
> error value, if it can't flush the overflown events to the
> CQ ring. If this happens, the application must reap events
> from the CQ ring and attempt the submit again.
But I'm not getting -EBUSY on a 6.2 kernel when submitting to the ring
with a full CQ ring and an overflow flag set. I'm not an expert in
uring code, but it seems the error was removed in commit
1b346e4aa8e79227391ffd6b7c6ee5acf0fa8bfc. Could you please check if
I'm right and if that change was intentional?
--
Regards,
Alexander Babayants.
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Submitting IO events with IORING_FEAT_NODROP and overflown CQ ring
2024-05-03 23:21 Submitting IO events with IORING_FEAT_NODROP and overflown CQ ring Alexander Babayants
@ 2024-05-05 18:11 ` Jens Axboe
0 siblings, 0 replies; 2+ messages in thread
From: Jens Axboe @ 2024-05-05 18:11 UTC (permalink / raw)
To: Alexander Babayants, io-uring
On 5/3/24 5:21 PM, Alexander Babayants wrote:
> Hi!
>
> Per io_uring_setup(2):
>
>> IORING_FEAT_NODROP
> ...
>> If this overflow condition is entered,
>> attempting to submit more IO will fail with the -EBUSY
>> error value, if it can't flush the overflown events to the
>> CQ ring. If this happens, the application must reap events
>> from the CQ ring and attempt the submit again.
>
> But I'm not getting -EBUSY on a 6.2 kernel when submitting to the ring
> with a full CQ ring and an overflow flag set. I'm not an expert in
> uring code, but it seems the error was removed in commit
> 1b346e4aa8e79227391ffd6b7c6ee5acf0fa8bfc. Could you please check if
> I'm right and if that change was intentional?
This is correct and intentional. The man page should get updated with a
note on the current behavior.
--
Jens Axboe
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2024-05-05 18:11 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-05-03 23:21 Submitting IO events with IORING_FEAT_NODROP and overflown CQ ring Alexander Babayants
2024-05-05 18:11 ` Jens Axboe
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox