file_write: Use sched_min_delay().
authorAndre Noll <maan@systemlinux.org>
Wed, 13 Jan 2010 22:17:58 +0000 (23:17 +0100)
committerAndre Noll <maan@systemlinux.org>
Wed, 13 Jan 2010 22:17:58 +0000 (23:17 +0100)
file_write.c

index 4495bf0..2a53499 100644 (file)
@@ -79,12 +79,10 @@ static void file_write_pre_select_btr(struct sched *s, struct task *t)
 
        t->error = 0;
        ret = btr_node_status(wn->btrn, wn->min_iqs, BTR_NT_LEAF);
-       if (ret > 0) {
+       if (ret > 0)
                para_fd_set(pfwd->fd, &s->wfds, &s->max_fileno);
-       } else if (ret < 0) {
-               s->timeout.tv_sec = 0;
-               s->timeout.tv_usec = 1;
-       }
+       else if (ret < 0)
+               sched_min_delay(s);
 }
 
 static void file_write_close(struct writer_node *wn)