Skip to content

Commit

Permalink
Merge pull request torvalds#334 from laijs/lkl/set-host-task-id-when-…
Browse files Browse the repository at this point in the history
…reuse

always set the ti->tid when reuse host task
  • Loading branch information
liuyuan10 authored Feb 22, 2017
2 parents 5b3fcd5 + e9e4998 commit 43faa6e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions arch/lkl/kernel/threads.c
Original file line number Diff line number Diff line change
Expand Up @@ -133,14 +133,14 @@ int host_task_stub(void *unused)

void switch_to_host_task(struct task_struct *task)
{
if (current == task)
return;

if (WARN_ON(!test_tsk_thread_flag(task, TIF_HOST_THREAD)))
return;

task_thread_info(task)->tid = lkl_ops->thread_self();

if (current == task)
return;

wake_up_process(task);
thread_sched_jb();
lkl_ops->sem_down(task_thread_info(task)->sched_sem);
Expand Down

0 comments on commit 43faa6e

Please sign in to comment.