mcctrl: use GFP_ATOMIC in atomic context

This commit is contained in:
Balazs Gerofi
2016-08-14 14:28:21 +09:00
parent 3fa3920bb3
commit fbbaaf5b54
4 changed files with 9 additions and 7 deletions

View File

@@ -190,6 +190,9 @@ long do_syscall(struct syscall_request *req, int cpu, int pid)
dkprintf("SC(%d)[%3d] sending syscall\n",
ihk_mc_get_processor_id(),
req->number);
irqstate = 0; /* for avoidance of warning */
barrier();
if(req->number != __NR_exit_group){
if(proc->nohost && // host is down
@@ -199,7 +202,6 @@ long do_syscall(struct syscall_request *req, int cpu, int pid)
++thread->in_syscall_offload;
}
irqstate = 0; /* for avoidance of warning */
if(req->number == __NR_exit_group ||
req->number == __NR_gettid ||
req->number == __NR_kill){ // interrupt syscall