lkml.org 
[lkml]   [2006]   [May]   [10]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: [RFC] Hugetlb demotion for x86
From
Date
On Wed, 2006-05-10 at 13:56 -0500, Adam Litke wrote:
>
> + do_munmap(mm, start, HPAGE_SIZE);
> + start = do_mmap_pgoff(0, start, HPAGE_SIZE, prot, flags, 0);
> + if (start < 0) {
> + return VM_FAULT_OOM;
> + }


Hmm.. These are being done in this path, right?

do_page_fault()
handle_mm_fault()
__handle_mm_fault()
hugetlb_fault()
hugetlb_demote_page()

I believe do_munmap() requires a write on mmap_sem(), but
do_page_fault() only takes a read.

-- Dave

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

\
 
 \ /
  Last update: 2006-05-10 21:53    [W:2.051 / U:0.012 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site