From: Andre Noll Date: Sat, 23 Jan 2010 13:29:57 +0000 (+0100) Subject: audiod: Request a minimal delay if the status buffer tree node is in error state. X-Git-Tag: v0.4.2~71 X-Git-Url: http://git.tuebingen.mpg.de/?p=paraslash.git;a=commitdiff_plain;h=62d50130f36ab791a109d61ff55cc902dc7c2db5 audiod: Request a minimal delay if the status buffer tree node is in error state. This happens during startup and causes a large delay. --- diff --git a/audiod.c b/audiod.c index 1734c703..965286f0 100644 --- a/audiod.c +++ b/audiod.c @@ -1116,6 +1116,8 @@ static void status_pre_select(struct sched *s, struct task *t) int ret; ret = btr_node_status(st->btrn, 0, BTR_NT_LEAF); + if (ret < 0) + sched_min_delay(s); sched_request_barrier(&st->restart_barrier, s); }