From: Marcelo Tosatti <marcelo@conectiva.com.br>
To: Rasmus Andersen <rasmus@jaquet.dk>
Cc: Rik van Riel <riel@conectiva.com.br>, linux-mm@kvack.org
Subject: Re: [PATCH] thinko in mm/filemap.c (242p1)
Date: Tue, 6 Feb 2001 10:39:23 -0200 (BRST) [thread overview]
Message-ID: <Pine.LNX.4.21.0102061038030.22906-100000@freak.distro.conectiva> (raw)
In-Reply-To: <20010206135857.J18574@jaquet.dk>
On Tue, 6 Feb 2001, Rasmus Andersen wrote:
> On Tue, Feb 06, 2001 at 10:51:05AM -0200, Rik van Riel wrote:
> > On Tue, 6 Feb 2001, Rasmus Andersen wrote:
> [...]
> >
> > I guess the writeout_one_page schedules the dirty pages for IO
> > and puts them on the list of locked pages. The last call then
> > waits on those same pages until they've been flushed to disk.
> >
> > Your change would wait on the pages but never submit them for
> > IO (again, a guess, I haven't looked at the code in too much
> > detail).
>
> The total function (generic_buffer_fdatasync) (with my patch):
>
> /* writeout dirty buffers on pages from both clean and dirty lists */
> retval = do_buffer_fdatasync(&inode->i_mapping->dirty_pages, start_idx,
> end_idx, writeout_one_page);
> retval |= do_buffer_fdatasync(&inode->i_mapping->clean_pages, start_idx,
> end_idx, writeout_one_page);
> retval |= do_buffer_fdatasync(&inode->i_mapping->locked_pages, start_idx
> , end_idx, writeout_one_page);
>
> /* now wait for locked buffers on pages from both clean and dirty lists
> */
> retval |= do_buffer_fdatasync(&inode->i_mapping->dirty_pages, start_idx,
> end_idx, waitfor_one_page);
> retval |= do_buffer_fdatasync(&inode->i_mapping->clean_pages, start_idx,
> end_idx, waitfor_one_page);
> retval |= do_buffer_fdatasync(&inode->i_mapping->locked_pages, start_idx
> , end_idx, waitfor_one_page);
>
>
> So we start the writeout in the three first lines and wait for them in
> the last three. Without my patch we write dirty_pages out again in the
> second run.
Pages written in the first run will be moved to the locked list.
No big deal, but its not a critical bug right now.
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org. For more info on Linux MM,
see: http://www.linux.eu.org/Linux-MM/
next prev parent reply other threads:[~2001-02-06 12:39 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-02-06 12:07 Rasmus Andersen
2001-02-06 12:51 ` Rik van Riel
2001-02-06 12:58 ` Rasmus Andersen
2001-02-06 12:39 ` Marcelo Tosatti [this message]
2001-02-06 13:02 ` Rik van Riel
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=Pine.LNX.4.21.0102061038030.22906-100000@freak.distro.conectiva \
--to=marcelo@conectiva.com.br \
--cc=linux-mm@kvack.org \
--cc=rasmus@jaquet.dk \
--cc=riel@conectiva.com.br \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox