Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 196869
b: refs/heads/master
c: f9eadbb
h: refs/heads/master
i:
  196867: 4976325
v: v3
  • Loading branch information
Jens Axboe committed May 21, 2010
1 parent c72c336 commit 1f9322c
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 7c8a3554c683f512dbcee26faedb42e4c05f12fa
refs/heads/master: f9eadbbd424c083b8005c7b738f644611b9ef489
9 changes: 7 additions & 2 deletions trunk/fs/fs-writeback.c
Original file line number Diff line number Diff line change
Expand Up @@ -978,8 +978,13 @@ int bdi_writeback_task(struct bdi_writeback *wb)
if (dirty_writeback_interval) {
wait_jiffies = msecs_to_jiffies(dirty_writeback_interval * 10);
schedule_timeout_interruptible(wait_jiffies);
} else
schedule();
} else {
set_current_state(TASK_INTERRUPTIBLE);
if (list_empty_careful(&wb->bdi->work_list) &&
!kthread_should_stop())
schedule();
__set_current_state(TASK_RUNNING);
}

try_to_freeze();
}
Expand Down

0 comments on commit 1f9322c

Please sign in to comment.