Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 208336
b: refs/heads/master
c: 297252c
h: refs/heads/master
v: v3
  • Loading branch information
Artem Bityutskiy authored and Jens Axboe committed Aug 7, 2010
1 parent 5760715 commit 0ef991c
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 9 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: c4ec7908c2c5125f75fabd100e7a95626a6883ee
refs/heads/master: 297252c81de8043ca6c36e5984c24fdb5aab9013
17 changes: 9 additions & 8 deletions trunk/fs/fs-writeback.c
Original file line number Diff line number Diff line change
Expand Up @@ -848,17 +848,18 @@ int bdi_writeback_thread(void *data)
break;
}

if (dirty_writeback_interval) {
wait_jiffies = msecs_to_jiffies(dirty_writeback_interval * 10);
schedule_timeout_interruptible(wait_jiffies);
} else {
set_current_state(TASK_INTERRUPTIBLE);
if (list_empty_careful(&wb->bdi->work_list) &&
!kthread_should_stop())
schedule();
set_current_state(TASK_INTERRUPTIBLE);
if (!list_empty(&bdi->work_list)) {
__set_current_state(TASK_RUNNING);
continue;
}

if (dirty_writeback_interval) {
wait_jiffies = msecs_to_jiffies(dirty_writeback_interval * 10);
schedule_timeout(wait_jiffies);
} else
schedule();

try_to_freeze();
}

Expand Down

0 comments on commit 0ef991c

Please sign in to comment.