io/uring/Queue: make Submit() virtual, Push() not

This allows submitting io_uring calls without an `Operation` instance
(fire & forget).  We'll do that for close().
This commit is contained in:
Max Kellermann
2023-03-23 12:01:35 +01:00
committed by Max Kellermann
parent 6496c1b806
commit 26577d1301
4 changed files with 6 additions and 8 deletions

View File

@@ -27,7 +27,7 @@ Queue::RequireSubmitEntry()
if (sqe == nullptr) {
/* the submit queue is full; submit it to the kernel
and try again */
Submit();
ring.Submit();
sqe = GetSubmitEntry();
if (sqe == nullptr)