Allow other threads to run while waiting for I/O in page faults
Change-Id: I51e847a02a698b0ecf1e356d51599aa1c9400b15
This commit is contained in:
committed by
Masamichi Takagi
parent
83ef96a739
commit
9b55b68934
@ -2324,10 +2324,12 @@ int page_fault_process_vm(struct process_vm *fault_vm, void *fault_addr, uint64_
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
preempt_enable();
|
||||||
if (thread->pgio_fp) {
|
if (thread->pgio_fp) {
|
||||||
(*thread->pgio_fp)(thread->pgio_arg);
|
(*thread->pgio_fp)(thread->pgio_arg);
|
||||||
thread->pgio_fp = NULL;
|
thread->pgio_fp = NULL;
|
||||||
}
|
}
|
||||||
|
preempt_disable();
|
||||||
}
|
}
|
||||||
|
|
||||||
return error;
|
return error;
|
||||||
|
|||||||
Reference in New Issue
Block a user