Attention is currently required from: jolly, pespin.

laforge has posted comments on this change by jolly. ( 
https://gerrit.osmocom.org/c/libosmocore/+/40490?usp=email )

Change subject: Submit all SQEs to kernel if they don't fit in the io_uring
......................................................................


Patch Set 3: Code-Review-1

(1 comment)

File src/core/osmo_io_uring.c:

https://gerrit.osmocom.org/c/libosmocore/+/40490/comment/5026b1ac_d27929cb?usp=email
 :
PS3, Line 139:  sqe = io_uring_get_sqe(&g_ring.ring);
> I bet this can still probably return NULL since between call to 
> io_uring_submit() and this line the  […]
I doubt this patch is useful in general. The *submit* will not release a sqe.  
It just notifies the kernel that there are new sqe in the shared memory region. 
 The kernel can then start to process them.  Let's assume they're all reads, 
which will only ever complete if some remote node has sent us something.  We 
cannot assume that this will be true between the two lines above.  Even if some 
of our seq are write to a datagram socket, we have no guarantee that the kernel 
will have completed those between submit and get_sqe.



--
To view, visit https://gerrit.osmocom.org/c/libosmocore/+/40490?usp=email
To unsubscribe, or for help writing mail filters, visit 
https://gerrit.osmocom.org/settings?usp=email

Gerrit-MessageType: comment
Gerrit-Project: libosmocore
Gerrit-Branch: master
Gerrit-Change-Id: I476d9db285a1d257a4a5d43ee45ee0116c7d7009
Gerrit-Change-Number: 40490
Gerrit-PatchSet: 3
Gerrit-Owner: jolly <[email protected]>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: laforge <[email protected]>
Gerrit-Reviewer: pespin <[email protected]>
Gerrit-Attention: jolly <[email protected]>
Gerrit-Attention: pespin <[email protected]>
Gerrit-Comment-Date: Fri, 04 Jul 2025 14:15:30 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: Yes
Comment-In-Reply-To: pespin <[email protected]>

Reply via email to