lkml.org 
[lkml]   [2010]   [Jul]   [22]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    SubjectRe: [PATCHv2 11/11] writeback: prevent unnecessary bdi threads wakeups
    From
    Date
    On Thu, 2010-07-22 at 18:05 +1000, Nick Piggin wrote:
    > This is producing 2 unrequired context switches, so I really would
    > like to see it done properly. Setting up a timer is really pretty
    > simple (or if you would care to implement a delayed process wakeup
    > API, I think that would be useful -- I'm surprised there isn't one
    > already).

    OK, a generic 'wake_up_process_timeout()' would need a timer, and it
    cannot set it up on stack because it has to return immediately, this is
    why we do not have such a generic helper, I think.

    --
    Best Regards,
    Artem Bityutskiy (Артём Битюцкий)

    --
    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to majordomo@vger.kernel.org
    More majordomo info at http://vger.kernel.org/majordomo-info.html
    Please read the FAQ at http://www.tux.org/lkml/

    \
     
     \ /
      Last update: 2010-07-22 11:59    [W:4.861 / U:0.200 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site