remote_page_fault is handled by the offloaded thread.

Change-Id: I9cfad509260cceada74abdf39ca6a1822561e0d9
Refs: #1474
This commit is contained in:
Tomoki Shirasawa
2021-02-09 19:26:20 +09:00
committed by Masamichi Takagi
parent 9c7d0cfaec
commit 7efb394905
14 changed files with 957 additions and 32 deletions

View File

@ -246,6 +246,16 @@ long do_syscall(struct syscall_request *req, int cpu)
unsigned long flags;
DECLARE_WAITQ_ENTRY(scd_wq_entry, cpu_local_var(current));
if (thread->rpf_backlog) {
void (*func)(void *) = thread->rpf_backlog;
void *arg = thread->rpf_arg;
thread->rpf_backlog = NULL;
thread->rpf_arg = NULL;
func(arg);
kfree(arg);
}
check_sig_pending();
cpu_pause();