projects
/
paraslash.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6cfcbbc
)
file_write: Use sched_min_delay().
author
Andre Noll
<maan@systemlinux.org>
Wed, 13 Jan 2010 22:17:58 +0000
(23:17 +0100)
committer
Andre Noll
<maan@systemlinux.org>
Wed, 13 Jan 2010 22:17:58 +0000
(23:17 +0100)
file_write.c
patch
|
blob
|
history
diff --git
a/file_write.c
b/file_write.c
index 4495bf007c4d9965f294bb54027721dbaaf126c9..2a53499abf532c05717afe5351b6ad72c3730b39 100644
(file)
--- 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)