[lkml]   [2007]   [Jul]   [8]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
    SubjectRe: schedule_timeout() called with state TASK_RUNNING from fs/select.c
    Robert P. J. Day wrote:
    > as i understand it, schedule_timeout() should always be called with
    > a current->state of TASK_INTERRUPTIBLE or TASK_UNINTERRUPTIBLE, no?


    Yes, it is pointless to call schedule() if it is known that ->state ==
    TASK_RUNNING, but sometimes the task doesn't know its state when it
    calls schedule/schedule_timeout, the state could be changed by

    See wait_event_timeout() as an example.


    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to
    More majordomo info at
    Please read the FAQ at

     \ /
      Last update: 2007-07-08 13:19    [W:0.018 / U:7.872 seconds]
    ©2003-2017 Jasper Spaans. hosted at Digital OceanAdvertise on this site