From a75a91e66032ad7ead8007dcdeb6f97dbf83669f Mon Sep 17 00:00:00 2001 From: alc Date: Thu, 2 Apr 2015 19:10:33 +0000 Subject: MFC r280238 Fix the root cause of the "vm_reserv_populate: reserv
is already promoted" panics. PR: 198163 --- sys/vm/vm_fault.c | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'sys/vm') diff --git a/sys/vm/vm_fault.c b/sys/vm/vm_fault.c index dfbc2bd..4311fe8 100644 --- a/sys/vm/vm_fault.c +++ b/sys/vm/vm_fault.c @@ -101,6 +101,7 @@ __FBSDID("$FreeBSD$"); #include #include #include +#include #define PFBAK 4 #define PFFOR 4 @@ -844,6 +845,14 @@ vnode_locked: unlock_and_deallocate(&fs); goto RetryFault; } +#if VM_NRESERVLEVEL > 0 + /* + * Rename the reservation. + */ + vm_reserv_rename(fs.m, fs.first_object, + fs.object, OFF_TO_IDX( + fs.first_object->backing_object_offset)); +#endif vm_page_xbusy(fs.m); fs.first_m = fs.m; fs.m = NULL; -- cgit v1.1