RE: Calculating kernel logical address ..

Manfred Spraul (manfred@colorfullife.com)
Mon, 09 Sep 2002 23:02:16 +0200


>>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 majordomo@vger.kernel.org
>>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.
>

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

- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/