fix: always add to frame owners when installing existing shared page.
This commit is contained in:
@@ -199,11 +199,7 @@ page_load_file (struct page_entry *page)
|
|||||||
lock_release (&shared_file_pages_lock);
|
lock_release (&shared_file_pages_lock);
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
/* First time adding the shared page, so add thread as owner. */
|
frame_owner_insert (sfp->frame, t);
|
||||||
if (page->type != PAGE_SHARED)
|
|
||||||
{
|
|
||||||
frame_owner_insert (sfp->frame, t);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
/* Shared page is in swap. Load it. */
|
/* Shared page is in swap. Load it. */
|
||||||
else
|
else
|
||||||
|
|||||||
Reference in New Issue
Block a user