summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--sys/vm/vm_contig.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/sys/vm/vm_contig.c b/sys/vm/vm_contig.c
index c876885..d3dc623 100644
--- a/sys/vm/vm_contig.c
+++ b/sys/vm/vm_contig.c
@@ -105,6 +105,10 @@ vm_contig_launder_page(vm_page_t m)
if (m->dirty == 0 && m->hold_count == 0)
pmap_remove_all(m);
if (m->dirty) {
+ if ((object->flags & OBJ_DEAD) != 0) {
+ VM_OBJECT_UNLOCK(object);
+ return (EAGAIN);
+ }
if (object->type == OBJT_VNODE) {
vm_page_unlock_queues();
vp = object->handle;
OpenPOWER on IntegriCloud