Re: mapping user space buffer to kernel address space

From: Stephen Tweedie (sct@redhat.com)
Date: Tue Oct 17 2000 - 08:43:36 EST


Hi,

On Mon, Oct 16, 2000 at 08:11:55PM -0700, Linus Torvalds wrote:

> I'm sure this bug will get fixed too. And the fix probably won't end up
> even being all that painful - it's probably a question of marking the page
> dirty after completing IO into it and making sure the swap-out logic does
> the right thing (ie try to write it out again - which is exactly the same
> thing that happens right now if a user dirties a page while it's busy
> doing write-out).
>
> In fact, the code may do this already, I'll let sct look into the exact
> details and fix it.

I've looked, and it doesn't yet, but Rik has already marked the places
where this would be implemented and it looks simple (famous last
words): mark the swap cache page dirty at writeout and flush to disk
during refill_inactive. Rik is sitting a few rows behind me right now
so we'll look at the code later today. He's already been talking
about doing this anyway to improve the write clustering of the swapout
code.

--Stephen
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Mon Oct 23 2000 - 21:00:11 EST