Re: [RFC] Hugetlb demotion for x86

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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 [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[Index of Archives]     [Kernel Newbies]     [Netfilter]     [Bugtraq]     [Photo]     [Stuff]     [Gimp]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Video 4 Linux]     [Linux for the blind]     [Linux Resources]
  Powered by Linux