mcexec_syscall(): avoid calling task_pid_nr_ns() in IRQ context

This commit is contained in:
Balazs Gerofi
2016-12-26 20:43:17 +09:00
parent 16e846e9b6
commit 6ad84a96a3
2 changed files with 4 additions and 1 deletions

View File

@ -326,6 +326,9 @@ retry_alloc:
/* Prepare per-thread wait queue head */
wqhln->task = current;
/* Save the TID explicitly, because mcexec_syscall(), where the request
* will be matched, is in IRQ context and can't call task_pid_vnr() */
wqhln->rtid = task_pid_vnr(current);
wqhln->req = 0;
init_waitqueue_head(&wqhln->wq_syscall);