[lkml]   [2011]   [Oct]   [11]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
    SubjectRe: [PATCH 0/4] allow freezing of tasks with netfs calls in flight
    On Tue, 11 Oct 2011 08:18:19 +0200
    Pavel Machek <> wrote:

    > Hi!
    > > We've had a number of reports recently of people with NFS and CIFS
    > > mounts that were unable to suspend or hibernate their machines. Here
    > > are a couple of Fedora bugs that illustrate the problem:
    > >
    > >
    > >
    > >
    > > When it occurs the problem is pretty clear. We have a task that's
    > > sleeping in the kernel in TASK_KILLABLE sleep, generally waiting
    > > for a reply to come in. Often though, userspace has already taken
    > > down the interface so that reply will never come. The process then
    > > fails to freeze and the suspend fails.
    > Userspace should not take interface down for suspend (*). Why do that?

    I suspect that NetworkManager does this to try and allow for the case
    where someone suspends their laptop and then wanders off to another
    network and then resumes. Either way, we still want to allow suspend
    and hibernate to work regardless of what userspace does during the

    > > This patch fixes this by allowing the TASK_KILLABLE sleeps in NFS and
    > > CIFS to be awoken by the freezer and then to try to freeze. If a freeze
    > > event does occur, then the code will treat it as if a schedule() has
    > > already occured.
    > Looks like good idea...
    > (*) unless absolutely neccessary. openvpn?

    Thanks for looking.
    Jeff Layton <>

     \ /
      Last update: 2011-10-11 12:09    [W:0.020 / U:3.000 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site