Fix locking. The dst_object must remain locked on the retry of the

loop iteration.

Reported and tested by:	pho
Sponsored by:	The FreeBSD Foundation
MFC after:	6 days
This commit is contained in:
Konstantin Belousov 2014-05-11 18:07:07 +00:00
parent dd006a1b14
commit c8f780e3d6
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=265887

View File

@ -1359,6 +1359,7 @@ vm_fault_copy_entry(vm_map_t dst_map, vm_map_t src_map,
VM_OBJECT_WUNLOCK(dst_object);
VM_OBJECT_RUNLOCK(object);
VM_WAIT;
VM_OBJECT_WLOCK(dst_object);
goto again;
}
} while (dst_m == NULL);