Re: sync_file_range(SYNC_FILE_RANGE_WRITE) blocks?

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Rik van Riel
Date: Tuesday, June 17, 2008 - 6:38 am

On Mon, 16 Jun 2008 21:54:06 -0700
Andrew Morton <akpm@linux-foundation.org> wrote:


Mmm, you are right.   It is counting the number of writeback
pages.

It just isn't waiting on them.  After moving enough pages from
dirty state to writeback state, it breaks out of the loop and
allows memory dirtying to continue.

                if (pages_written >= write_chunk)
                        break;          /* We've done our duty */

I wonder if we should wait for some IO to complete, or at least
do a simple congestion_wait() if the number of writeback pages
is very large?

-- 
All rights reversed.
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
sync_file_range(SYNC_FILE_RANGE_WRITE) blocks?, Pavel Machek, (Fri May 30, 3:26 am)
Re: sync_file_range(SYNC_FILE_RANGE_WRITE) blocks?, Hugh Dickins, (Fri May 30, 6:58 am)
Re: sync_file_range(SYNC_FILE_RANGE_WRITE) blocks?, Pavel Machek, (Fri May 30, 1:43 pm)
Re: sync_file_range(SYNC_FILE_RANGE_WRITE) blocks?, Hugh Dickins, (Sat May 31, 11:44 am)
Re: sync_file_range(SYNC_FILE_RANGE_WRITE) blocks?, Andrew Morton, (Sat May 31, 5:39 pm)
Re: sync_file_range(SYNC_FILE_RANGE_WRITE) blocks?, Hugh Dickins, (Sun Jun 1, 12:23 am)
Re: sync_file_range(SYNC_FILE_RANGE_WRITE) blocks?, Andrew Morton, (Sun Jun 1, 1:15 am)
Re: sync_file_range(SYNC_FILE_RANGE_WRITE) blocks?, Pavel Machek, (Sun Jun 1, 4:40 am)
Re: sync_file_range(SYNC_FILE_RANGE_WRITE) blocks?, Andrew Morton, (Sun Jun 1, 1:37 pm)
Re: sync_file_range(SYNC_FILE_RANGE_WRITE) blocks?, Rafael J. Wysocki, (Sun Jun 1, 3:00 pm)
Re: sync_file_range(SYNC_FILE_RANGE_WRITE) blocks?, Pavel Machek, (Sun Jun 1, 3:22 pm)
Re: sync_file_range(SYNC_FILE_RANGE_WRITE) blocks?, Andrew Morton, (Sun Jun 1, 3:47 pm)
Re: sync_file_range(SYNC_FILE_RANGE_WRITE) blocks?, Pavel Machek, (Sun Jun 1, 4:00 pm)
Re: sync_file_range(SYNC_FILE_RANGE_WRITE) blocks?, Andrew Morton, (Sun Jun 1, 4:11 pm)
Re: sync_file_range(SYNC_FILE_RANGE_WRITE) blocks?, Hugh Dickins, (Mon Jun 2, 1:43 am)
Re: sync_file_range(SYNC_FILE_RANGE_WRITE) blocks?, Rafael J. Wysocki, (Mon Jun 2, 4:18 am)
Re: sync_file_range(SYNC_FILE_RANGE_WRITE) blocks?, Jens Axboe, (Mon Jun 2, 4:43 am)
Re: sync_file_range(SYNC_FILE_RANGE_WRITE) blocks?, Hugh Dickins, (Mon Jun 2, 5:11 am)
Re: sync_file_range(SYNC_FILE_RANGE_WRITE) blocks?, Hugh Dickins, (Mon Jun 2, 5:40 am)
Re: sync_file_range(SYNC_FILE_RANGE_WRITE) blocks?, Andrew Morton, (Mon Jun 2, 9:50 am)
Re: sync_file_range(SYNC_FILE_RANGE_WRITE) blocks?, Michael Kerrisk, (Tue Jun 3, 1:01 am)
Re: sync_file_range(SYNC_FILE_RANGE_WRITE) blocks?, Pavel Machek, (Tue Jun 3, 1:05 am)
Re: sync_file_range(SYNC_FILE_RANGE_WRITE) blocks?, Rik van Riel, (Mon Jun 16, 1:53 pm)
Re: sync_file_range(SYNC_FILE_RANGE_WRITE) blocks?, Andrew Morton, (Mon Jun 16, 9:54 pm)
Re: sync_file_range(SYNC_FILE_RANGE_WRITE) blocks?, Rik van Riel, (Tue Jun 17, 6:38 am)