Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 230701
b: refs/heads/master
c: aa373cf
h: refs/heads/master
i:
  230699: 79c1b13
v: v3
  • Loading branch information
Jan Kara authored and Linus Torvalds committed Jan 14, 2011
1 parent 62f5972 commit 56d0c2f
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 71927e84e0aebfbe5a91565c3b207af25a4e9162
refs/heads/master: aa373cf550994623efb5d49a4d8775bafd10bbc1
10 changes: 10 additions & 0 deletions trunk/fs/fs-writeback.c
Original file line number Diff line number Diff line change
Expand Up @@ -650,6 +650,16 @@ static long wb_writeback(struct bdi_writeback *wb,
if (work->nr_pages <= 0)
break;

/*
* Background writeout and kupdate-style writeback may
* run forever. Stop them if there is other work to do
* so that e.g. sync can proceed. They'll be restarted
* after the other works are all done.
*/
if ((work->for_background || work->for_kupdate) &&
!list_empty(&wb->bdi->work_list))
break;

/*
* For background writeout, stop when we are below the
* background dirty threshold
Expand Down

0 comments on commit 56d0c2f

Please sign in to comment.