Re: vm_ops.page_mkwrite() fails with vmalloc on 2.6.23

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Jaya Kumar <jayakumar.lkml@...>
Cc: Andrew Morton <akpm@...>, <stefani@...>, <linux-kernel@...>, David Howells <dhowells@...>, <linux-mm@...>, Hugh Dickins <hugh@...>
Date: Monday, October 29, 2007 - 6:16 pm

On Mon, 2007-10-29 at 19:17 +0100, Peter Zijlstra wrote:

Hmm, so these vmalloc pages are mapped into user-space with
remap_pfn_range(), which doesn't have any form of rmap. That is, given a
pfn there is no way to obtain all ptes for it. So the interface to
page_mkclean() could never work for these (as it only provides a struct
page *).

[ also, remap_vmalloc_range() suffers similar issues, only file and anon
  have proper rmap ]

I'm not sure we want full rmap for remap_pfn/vmalloc_range, but perhaps
we could assist drivers in maintaining and using vma lists.

I think page_mkclean_one() would work if you'd manually set page->index
and iterate the vmas yourself. Although atm I'm not sure of anything so
don't pin me on it.

-
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
vm_ops.page_mkwrite() fails with vmalloc on 2.6.23, Stefani Seibold, (Mon Oct 22, 10:40 am)
Re: vm_ops.page_mkwrite() fails with vmalloc on 2.6.23, Andrew Morton, (Mon Oct 29, 3:40 am)
Re: vm_ops.page_mkwrite() fails with vmalloc on 2.6.23, Peter Zijlstra, (Mon Oct 29, 1:01 pm)
Re: vm_ops.page_mkwrite() fails with vmalloc on 2.6.23, Peter Zijlstra, (Mon Oct 29, 2:17 pm)
Re: vm_ops.page_mkwrite() fails with vmalloc on 2.6.23, Peter Zijlstra, (Mon Oct 29, 6:16 pm)
Re: vm_ops.page_mkwrite() fails with vmalloc on 2.6.23, Peter Zijlstra, (Tue Oct 30, 5:56 am)
Re: vm_ops.page_mkwrite() fails with vmalloc on 2.6.23, Peter Zijlstra, (Tue Oct 30, 9:25 am)
Re: vm_ops.page_mkwrite() fails with vmalloc on 2.6.23, Hugh Dickins, (Tue Oct 30, 11:47 am)
Re: vm_ops.page_mkwrite() fails with vmalloc on 2.6.23, Peter Zijlstra, (Tue Oct 30, 11:51 am)
Re: vm_ops.page_mkwrite() fails with vmalloc on 2.6.23, Stefani Seibold, (Tue Oct 30, 6:49 am)
Re: vm_ops.page_mkwrite() fails with vmalloc on 2.6.23, Hugh Dickins, (Tue Oct 30, 8:39 am)
Re: vm_ops.page_mkwrite() fails with vmalloc on 2.6.23, Peter Zijlstra, (Tue Oct 30, 9:12 am)
Re: vm_ops.page_mkwrite() fails with vmalloc on 2.6.23, Peter Zijlstra, (Mon Oct 29, 6:11 am)
Re: vm_ops.page_mkwrite() fails with vmalloc on 2.6.23, Peter Zijlstra, (Mon Oct 29, 8:35 am)
Re: vm_ops.page_mkwrite() fails with vmalloc on 2.6.23, Nick Piggin, (Mon Oct 29, 10:28 am)