]> git.tuebingen.mpg.de Git - paraslash.git/commitdiff
generic_filter_pre_select(): Fix off-by-one.
authorAndre Noll <maan@systemlinux.org>
Sun, 3 Jan 2010 21:44:40 +0000 (22:44 +0100)
committerAndre Noll <maan@systemlinux.org>
Sun, 3 Jan 2010 21:44:40 +0000 (22:44 +0100)
filter_common.c

index 56fbd82b6d527a8876020798b1d624120acc11da..a27c2d303ad28d823ae9af20eeb4878f9300cad1 100644 (file)
@@ -303,7 +303,7 @@ void generic_filter_pre_select(struct sched *s, struct task *t)
        size_t iqs = btr_get_input_queue_size(fn->btrn);
 
        t->error = 0;
-       if (iqs <= fn->min_iqs)
+       if (iqs < fn->min_iqs)
                return;
        if (btr_bytes_pending(fn->btrn) > FILTER_MAX_PENDING)
                return; /* FIXME, should use reasonable bound on timeout */