Skip to content
Success

Changes

Summary

  1. io_uring: Avoid extra reads if iofd becomes unregistered by user (details)
Commit f5e98f02567e9236bee93afc8fa6a855b2a7b57d by Oliver Smith
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.

This is a backport of master branch commit
32efc324ce0b30280effef4860bb15588ecb1010.

Change-Id: I514412ecfbb82d32cb3d9c2272795ebac42f55e9
The file was modifiedsrc/core/osmo_io_uring.c