Loading
bdev/uring: handle async out of resource from uring
If there are sufficient resources to submit the I/O but resources are exhausted during processing, the result in the completion queue entry will be -EAGAIN. Complete the I/O in this case with NOMEM to allow it to be retried. This change also fixes the return value from bdev_uring_reap on error return from io_uring_peek_cqe so it doesn't lose the count of cqes already processed. The sole caller isn't expecting an error return and the value only used to determine whether work was done or not. Change-Id: I49d83873dde895ec9056c13e91af616985fea97c Signed-off-by:Ed Reed <edreed@microsoft.com> Reviewed-on: https://review.spdk.io/c/spdk/spdk/+/25453 Reviewed-by:
Jim Harris <jim.harris@nvidia.com> Reviewed-by:
Changpeng Liu <changpeliu@tencent.com> Community-CI: Mellanox Build Bot Tested-by:
SPDK Automated Test System <spdkbot@gmail.com>