[lkml]   [2001]   [May]   [8]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: oddity with page_launder() handling of dirty pages

On Tue, 8 May 2001, Marcelo Tosatti wrote:
> Linus, since you wrote that part of the code, I ask you: do you have any
> reason to not remove a page being writepage()'d from the
> inactive_dirty_list to avoid this kind of problems ?
> (the page must be added back to the inactive_dirty_list again after the
> writeout, yes).

This is the reason. I think it is absolutely _wrong_ to add it back after
the writeout - anything could have happened to the page, including the
page moving to other lists or not being a page cache page AT ALL.

We had tons of bugs in this area when the page lists were introduced.

Leaving it on the list and letting anybody who changed the state of the
page remove it cleanly fixed all the bugs. And I'm not going back to the
old and broken code.

You can move it to the "active_list" if you want to while it is being
written out ("it's busy, so it's active"). As long as you move it _before_
you start the write-out.


To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
More majordomo info at
Please read the FAQ at

 \ /
  Last update: 2005-03-22 12:52    [W:0.152 / U:0.004 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site