Commit a37cf7a4 authored by Pavel Emelyanov's avatar Pavel Emelyanov

seize: Add some comments about unseizing task

Signed-off-by: 's avatarPavel Emelyanov <xemul@parallels.com>
parent 9cec289f
...@@ -789,6 +789,11 @@ static void unseize_task_and_threads(const struct pstree_item *item, int st) ...@@ -789,6 +789,11 @@ static void unseize_task_and_threads(const struct pstree_item *item, int st)
if (item->state == TASK_DEAD) if (item->state == TASK_DEAD)
return; return;
/*
* The st is the state we want to switch tasks into,
* the item->state is the state task was in when we seized one.
*/
if (st == TASK_ALIVE) if (st == TASK_ALIVE)
unseize_task(item->pid.real, item->state); unseize_task(item->pid.real, item->state);
else else
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment