Messages in this thread | | | Date | Wed, 1 Oct 2008 21:52:39 -0700 | From | Andrew Morton <> | Subject | Re: [PATCH] Improve buffered streaming write ordering |
| |
On Wed, 01 Oct 2008 14:40:51 -0400 Chris Mason <chris.mason@oracle.com> wrote:
> The patch below changes write_cache_pages to only use writeback_index > when current_is_pdflush(). The basic idea is that pdflush is the only > one who has concurrency control against the bdi, so it is the only one > who can safely use and update writeback_index.
Another approach would be to only update mapping->writeback_index if nobody else altered it meanwhile.
That being said, I don't really see why we get lots of seekiness when two threads start their writing the file from the same offset.
| |