From: Andre Noll Date: Wed, 13 Jan 2010 22:17:58 +0000 (+0100) Subject: file_write: Use sched_min_delay(). X-Git-Tag: v0.4.2~106 X-Git-Url: http://git.tue.mpg.de/?a=commitdiff_plain;h=2f813fc9eb96531dde5c907b50b45d381456bb4e;p=paraslash.git file_write: Use sched_min_delay(). --- diff --git a/file_write.c b/file_write.c index 4495bf00..2a53499a 100644 --- a/file_write.c +++ b/file_write.c @@ -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)