Re: Calculating kernel logical address ..

David S. Miller
2002-09-09T18:49:45Z

From: "Imran Badr" <imran.badr@cavium.com>
Date: Mon, 9 Sep 2002 11:49:02 -0700

down(&current->mm->mmap_sem) would help.

Yes and get_user_pages() grabs a reference to all the pages
for you.