Skip to content
Success

Changes

Summary

  1. io_uring: Avoid extra reads if iofd becomes unregistered by user (details)
Commit 32efc324ce0b30280effef4860bb15588ecb1010 by Pau Espin Pedrol
io_uring: Avoid extra reads if iofd becomes unregistered by user

The user callback (read_cb, segmentation_cb, etc.) may decide to
unregister the iofd instead of closing it. In this scenario, we should
avoid calling the callback further until the iofd is registered again.

Change-Id: I231d5a16768b730f67089090c244bcc10dc69c3a
The file was modifiedsrc/core/osmo_io_uring.c
The file was modifiedtests/osmo_io/osmo_io_test.c