summaryrefslogtreecommitdiffstats
path: root/sys/kern/subr_uio.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/kern/subr_uio.c')
-rw-r--r--sys/kern/subr_uio.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/sys/kern/subr_uio.c b/sys/kern/subr_uio.c
index efa483f..1ee265c 100644
--- a/sys/kern/subr_uio.c
+++ b/sys/kern/subr_uio.c
@@ -56,7 +56,6 @@ __FBSDID("$FreeBSD$");
#include <vm/vm_param.h>
#include <vm/vm_extern.h>
#include <vm/vm_page.h>
-#include <vm/vm_pageout.h>
#include <vm/vm_map.h>
#ifdef SOCKET_SEND_COW
#include <vm/vm_object.h>
@@ -123,12 +122,7 @@ retry:
if (uobject->backing_object != NULL)
pmap_remove(map->pmap, uaddr, uaddr + PAGE_SIZE);
}
- if (vm_page_insert(kern_pg, uobject, upindex)) {
- VM_OBJECT_WUNLOCK(uobject);
- VM_WAIT;
- VM_OBJECT_WLOCK(uobject);
- goto retry;
- }
+ vm_page_insert(kern_pg, uobject, upindex);
vm_page_dirty(kern_pg);
VM_OBJECT_WUNLOCK(uobject);
vm_map_lookup_done(map, entry);
OpenPOWER on IntegriCloud