Re: Do I need spin_lock before pgd/pmd/pte_offset?

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

 



Ed L Cashin wrote:

Check the callers of follow_page, and you should see them getting the
mmap semaphore before taking the page table lock and then finally
calling follow_page. Folks hold onto the mmap semaphore for longer
periods of time, so you might have to search up the call chain a
ways.

I couldn't find any examples of the sempahore being held for calls to follow_page(), but I did find lots of examples for get_user_pages(), which does call follow_page().


Anyway, thanks for your help.

--
Timur Tabi
Staff Software Engineer
timur.tabi@ammasso.com

--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive:       http://mail.nl.linux.org/kernelnewbies/
FAQ:           http://kernelnewbies.org/faq/


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux