Commit 082825b6 authored by Andrew Morton's avatar Andrew Morton Committed by Linus Torvalds

[PATCH] Add mpage_writepages() scheduling point

From: Jens Axboe <axboe@suse.de>

Takashi did some nice latency testing of the current kernel (with -mm
writeback changes), and the biggest offender in general core is
mpage_writepages().
parent 9672a337
...@@ -679,6 +679,7 @@ mpage_writepages(struct address_space *mapping, ...@@ -679,6 +679,7 @@ mpage_writepages(struct address_space *mapping,
} }
} }
pagevec_release(&pvec); pagevec_release(&pvec);
cond_resched();
} }
if (!scanned && !done) { if (!scanned && !done) {
/* /*
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment