• Tim Chen's avatar
    sched/wait: Introduce wakeup boomark in wake_up_page_bit · 11a19c7b
    Tim Chen authored
    Now that we have added breaks in the wait queue scan and allow bookmark
    on scan position, we put this logic in the wake_up_page_bit function.
    
    We can have very long page wait list in large system where multiple
    pages share the same wait list. We break the wake up walk here to allow
    other cpus a chance to access the list, and not to disable the interrupts
    when traversing the list for too long.  This reduces the interrupt and
    rescheduling latency, and excessive page wait queue lock hold time.
    
    [ v2: Remove bookmark_wake_function ]
    Signed-off-by: default avatarTim Chen <tim.c.chen@linux.intel.com>
    Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
    11a19c7b
wait.c 13.3 KB