audiod: Request a minimal delay if the status buffer tree node is in error state.
authorAndre Noll <maan@systemlinux.org>
Sat, 23 Jan 2010 13:29:57 +0000 (14:29 +0100)
committerAndre Noll <maan@systemlinux.org>
Sat, 23 Jan 2010 13:29:57 +0000 (14:29 +0100)
This happens during startup and causes a large delay.

audiod.c

index 1734c70357537cf942f1dad0172cd6167e454ba0..965286f079ccaa1ab4be969e337f4c1181b82f50 100644 (file)
--- 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);
 }