1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-21 11:13:30 +00:00

Eliminate the acquisition and release of Giant around the call to

pmap_mincore() in mincore(2).  Either pmap locking exists (alpha, amd64,
i386, ia64) or pmap_mincore() is unimplemented (arm, powerpc, sparc64).
This commit is contained in:
Alan Cox 2004-08-02 03:31:05 +00:00
parent f8fb286a84
commit 21c125453c
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=132999

View File

@ -767,9 +767,7 @@ mincore(td, uap)
* it can provide info as to whether we are the
* one referencing or modifying the page.
*/
mtx_lock(&Giant);
mincoreinfo = pmap_mincore(pmap, addr);
mtx_unlock(&Giant);
if (!mincoreinfo) {
vm_pindex_t pindex;
vm_ooffset_t offset;