diff options
| author | Andrew Morton <akpm@digeo.com> | 2002-10-15 18:37:49 -0700 |
|---|---|---|
| committer | Linus Torvalds <torvalds@home.transmeta.com> | 2002-10-15 18:37:49 -0700 |
| commit | 62a34f2d5dfa0127f86d020e6b90bf5cdd9263b0 (patch) | |
| tree | d168d524247dea0a05dc50e1b1762942f5c9bd14 | |
| parent | 9b83f355e77340540c47920b61a45cb95670416b (diff) | |
[PATCH] don't make writers wait on their writeback in page reclaim
I had some code in page reclaim which is designed to catch the caller
of write(2) in page reclaim and force him to wait on writeout of his
own spindle's pages.
It works too well - there are large stalls in things like `cp
large-file foo' on small-memory machines.
So remove it, and rely on the other, more predictable throttling
schemes.
| -rw-r--r-- | mm/vmscan.c | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/mm/vmscan.c b/mm/vmscan.c index a05efff43569..4049ee2fffde 100644 --- a/mm/vmscan.c +++ b/mm/vmscan.c @@ -230,13 +230,8 @@ shrink_list(struct list_head *page_list, unsigned int gfp_mask, * writes. */ if (PageWriteback(page)) { - if (may_enter_fs) { - if (page->pte.direct || - page->mapping->backing_dev_info == - current->backing_dev_info) { - wait_on_page_writeback(page); - } - } + if (may_enter_fs && page_mapped(page)) + wait_on_page_writeback(page); goto keep_locked; } |
