From 63fc20aee272482a337513786e83f82c2e0e4c99 Mon Sep 17 00:00:00 2001 From: Dimitri Staessens Date: Sun, 16 Aug 2026 18:15:26 +0000 Subject: ipcpd: Don't drop DT flows on -EAGAIN The scheduler was dropping DT flows when they were momentarily empty (-EAGAIN). Now it will continue to the next flow and only drop on hard errors. Signed-off-by: Dimitri Staessens Signed-off-by: Sander Vrijders --- src/ipcpd/unicast/psched.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'src/ipcpd/unicast/psched.c') diff --git a/src/ipcpd/unicast/psched.c b/src/ipcpd/unicast/psched.c index 01c4b066..dce85120 100644 --- a/src/ipcpd/unicast/psched.c +++ b/src/ipcpd/unicast/psched.c @@ -135,6 +135,7 @@ static uint64_t dsched_serve(struct dsched * d, uint64_t dmin = 0; size_t i; int fd; + int ret; time_t wait; bool served; @@ -151,7 +152,13 @@ static uint64_t dsched_serve(struct dsched * d, continue; } - if (sched->read(fd, &spb) < 0) { + ret = sched->read(fd, &spb); + if (ret == -EAGAIN) { /* empty now, keep it */ + ++i; + continue; + } + + if (ret < 0) { dsched_untrack(d, fd); continue; } -- cgit v1.2.3