lkml.org 
[lkml]   [2007]   [Jul]   [4]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    From
    SubjectRe: [linux-pm] [PATCH] Remove process freezer from suspend to RAM pathway
    On 7/4/07, Paul Mackerras <paulus@samba.org> wrote:
    > Rafael J. Wysocki writes:
    >
    > > They are mostly related to kernel threads, that we've already agreed no to
    > > freeze (except for the ones that want that, but they will be responsible for
    > > getting everything right). The initial patches for that are in -mm and more
    > > will come.
    >
    > Serious question: which kernel threads would actually want to be
    > frozen?
    >
    > Threads that do no I/O at all don't care about suspend/resume and
    > don't need to be frozen in any case. Threads that issue I/O requests
    > in order to service incoming I/O requests can't be frozen because of
    > the possibility of deadlock. Which leaves threads that do I/O just
    > for the fun of it. :)
    >
    > What am I missing?
    >

    I like kseriod and kgameportd to be frozen. If fast resume of serio
    port fails we kick the task of full resume to kseriod. But when we
    hibernate and all the devices are resumed again so snapshot can be
    written I don't care if touchpad failed to resume - it can be dealt
    with later, when system is actually resumes. So I like that by
    freezing I do not delay hibernation and all requests get simply
    discarded as they are not in the image. This mostly affects
    hibernation though.

    Having these threads frozen also guarantees that serio/gameport device
    tree is stable during susped/resume and I can process outstanding
    requests later, when system is fully up.

    --
    Dmitry
    -
    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: 2007-07-04 16:15    [W:2.416 / U:0.160 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site