]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
To implement the sequential access optimization, vm_fault() may need to
authoralc <alc@FreeBSD.org>
Sat, 23 Aug 2003 06:52:32 +0000 (06:52 +0000)
committeralc <alc@FreeBSD.org>
Sat, 23 Aug 2003 06:52:32 +0000 (06:52 +0000)
commit06fbefe190e0ae8a0c89a80fbd6c80183f7e06e1
tree44682ab860f018edce772bcd663f7d2b161b895e
parentedbda376e130a72c3d04ba2863f7f2772ac1175e
To implement the sequential access optimization, vm_fault() may need to
reacquire the "first" object's lock while a backing object's lock is held.
Since this is a lock-order reversal, vm_fault() uses trylock to acquire
the first object's lock, skipping the sequential access optimization in
the unlikely event that the trylock fails.
sys/vm/vm_fault.c