In the unlikely event that pmap_ts_referenced() demoted five superpage

mappings to the same underlying physical page, the calling thread would be
left forever pinned to the same processor.

MFC after:	3 days
This commit is contained in:
Alan Cox 2010-06-03 03:55:22 +00:00
parent f4e10cdaa6
commit 966898be68

View File

@ -4540,7 +4540,7 @@ pmap_ts_referenced(vm_page_t m)
rtval++;
if (rtval > 4) {
PMAP_UNLOCK(pmap);
return (rtval);
goto out;
}
}
}
@ -4569,6 +4569,7 @@ pmap_ts_referenced(vm_page_t m)
PMAP_UNLOCK(pmap);
} while ((pv = pvn) != NULL && pv != pvf);
}
out:
sched_unpin();
return (rtval);
}