freeze_processes questions

Rafael J. Wysocki
2005-04-05T09:20:44Z

[-- Attachment #1: Type: text/plain, Size: 547 bytes --]

Hi,

I have two questions regarding freeze_processes():

1) Shouldn't we take the TASK_UNINTERRUPTIBLE state into consideration? Now
we will fail if a process is sleeping when we try to freeze it.

2) Is it necessary to check p->state == TASK_STOPPED and
p->state == TASK_TRACED twice in a row (once in freezable() and
then again in the next if ())?

Greets,
Rafael

--
- Would you tell me, please, which way I ought to go from here?
- That depends a good deal on where you want to get to.
-- Lewis Carroll "Alice's Adventures in Wonderland"