Re: Clarification required about select vs wake_up race condition

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Dmitry Adamushko
Date: Wednesday, March 14, 2007 - 10:08 am

On 12/03/07, Ravinandan Arakali (rarakali) <rarakali@cisco.com> wrote:

No, it's not going to sleep then.

The effect of schedule() being called with current->state ==
TASK_RUNNING is a re-scheduling to another task with a higher prio (if
any) or just getting back (iow, the task doesn't lose a cpu). For both
cases, the task is on the runqueue.

/ Look how/when deactivate_task() is called in schedule() /

Maybe there is a race in your code between (1) how you check "data is
available" in poll and (2) a part that sets this fact (data is
available)...


-- 
Best regards,
Dmitry Adamushko
-
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Clarification required about select vs wake_up race condition, Ravinandan Arakali ( ..., (Mon Mar 12, 12:44 pm)
RE: Clarification required about select vs wake_up race co ..., Ravinandan Arakali ( ..., (Wed Mar 14, 9:33 am)
Re: Clarification required about select vs wake_up race co ..., Dmitry Adamushko, (Wed Mar 14, 10:08 am)
RE: Clarification required about select vs wake_up race co ..., Ravinandan Arakali ( ..., (Wed Mar 14, 11:38 am)