diff options
author | alc <alc@FreeBSD.org> | 2003-09-18 02:26:03 +0000 |
---|---|---|
committer | alc <alc@FreeBSD.org> | 2003-09-18 02:26:03 +0000 |
commit | 1644dd5fce2192d54736b9824e5a6cd6ec9ef0fa (patch) | |
tree | 1410c2003b81bbc19af1d323168d690a78204dd8 /sys/vm/vm_fault.c | |
parent | 8e2cce2cfe9c258058e4f193aa6cb50e389a0c1a (diff) | |
download | FreeBSD-src-1644dd5fce2192d54736b9824e5a6cd6ec9ef0fa.zip FreeBSD-src-1644dd5fce2192d54736b9824e5a6cd6ec9ef0fa.tar.gz |
Add vm object locking to vnode_pager_lock(). (This triggers the movement
of a VM_OBJECT_LOCK() in vm_fault().)
Diffstat (limited to 'sys/vm/vm_fault.c')
-rw-r--r-- | sys/vm/vm_fault.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/vm/vm_fault.c b/sys/vm/vm_fault.c index 2f87cb7..855ff71 100644 --- a/sys/vm/vm_fault.c +++ b/sys/vm/vm_fault.c @@ -282,8 +282,8 @@ RetryFault:; * XXX vnode_pager_lock() can block without releasing the map lock. */ vm_object_reference(fs.first_object); - fs.vp = vnode_pager_lock(fs.first_object); VM_OBJECT_LOCK(fs.first_object); + fs.vp = vnode_pager_lock(fs.first_object); vm_object_pip_add(fs.first_object, 1); fs.lookup_still_valid = TRUE; |