Skip to contentSkip to conversation

Calculating kernel logical address ..

DISCUSSION Manfred Spraul 2 participants 2 messages Sep 9, 2002

lore
Share & tools
lore
#0 lore raw
Quoted 12 lines
Quoted 9 lines

As long as you can be sure they won't spontaneously vanish on you.

--
Daniel
-
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/

Quoted 2 lines

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

Wrong. Acquiring the mmap semaphore does NOT prevent the swapper from swapping out pages.

Only the page_table_lock prevents the swapper from touching a task.

--
Manfred

#1 lore raw

-----Original Message-----
From: Manfred Spraul [mailto:[email protected]]
Sent: Monday, September 09, 2002 2:02 PM
To: Imran Badr; [email protected]
Subject: RE: Calculating kernel logical address ..

Quoted 15 lines
Quoted 9 lines

As long as you can be sure they won't spontaneously vanish on you.

--
Daniel
-
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/

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

Quoted 7 lines

Wrong. Acquiring the mmap semaphore does NOT prevent the swapper from swapping out pages.

Only the page_table_lock prevents the swapper from touching a task.

--
Manfred

I think you missed the whole context of the discussion. The next step is to call get_user_pages() which takes appropriate actions to prevent page swaps.

Thanks,
Imran.