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/