RE: -mm swsusp: do not default to platform/firmware

From: Li, Shaohua (shaohua.li_at_intel.com)
Date: 07/29/04

  • Next message: FabF: "symlinks follow 8 or 5?"
    Date:	Thu, 29 Jul 2004 13:19:05 +0800
    To: <ncunningham@linuxmail.org>
    
    

    Hi,

    >-----Original Message-----
    >From: linux-kernel-owner@vger.kernel.org [mailto:linux-kernel-
    >owner@vger.kernel.org] On Behalf Of Nigel Cunningham
    >Sent: Thursday, July 29, 2004 8:30 AM
    >To: Pavel Machek
    >Cc: Andrew Morton; Patrick Mochel; akpm@zip.com.au; Linux Kernel
    Mailing
    >List
    >Subject: Re: -mm swsusp: do not default to platform/firmware
    >
    >Hi.
    >
    >On Thu, 2004-07-29 at 09:43, Pavel Machek wrote:
    >> +I did found some kernel threads don't do it, and they don't freeze,
    and
    >
    >"I found... threads that don't..."
    >
    >> +so the system can't sleep. Is this a known behavior?
    >> +
    >> +A: All such kernel threads need to be fixed, one by one. Select
    place
    >> +where it is safe to be frozen (no kernel semaphores should be held
    at
    >> +that point and it must be safe to sleep there), and add:
    >> +
    >> + if (current->flags & PF_FREEZE)
    >> + refrigerator(PF_FREEZE);
    >> +
    >
    >Perhaps you should also add.
    >
    >If the thread is needed for writing the image to storage, you should
    >instead set the PF_NOFREEZE process flag when creating the thread.
    >
    You know for sleep into mem (s3) we also use
    'freeze_processes/refrigerator', and the threads don't write image to
    storage for S3. Should the threads be set the PF_NOFREEZE? Is there any
    side effect for S3 if the threads are running?

    Thanks,
    Shaohua

    -
    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/


  • Next message: FabF: "symlinks follow 8 or 5?"

    Relevant Pages

    • Re: [RFC] Generalize prio_tree (1/3)
      ... Hmm, GET_INDEX/get_index grows and grows, and also generates a ... And what if we took the hit and moved the key into struct ... half of the key is free (in terms of storage - the key updates ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: non-free firmware in kernel modules, aggregation and unclear copyright notice.
      ... if you think so, you should state it in writing, ... you know, to avoid lawyer attacks. ... which are the licensing terms of said work... ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • [2.6 patch] remove ACPI S4bios support
      ... This patch was sent by Pavel Machek on: ... static struct pm_ops acpi_pm_ops; ... extern void do_suspend_lowlevel; ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: 2.6.9-mm1
      ... BFD: Warning: Writing section `.bss' to huge file offset ... Senior Computer Associate ICCD/SDD/ICRMG Fax: 925-423-8719 Lawrence Livermore National Laboratory Computation Directorate Livermore, CA USA http://www.llnl.gov GPG Public Key ID: B9EB6601 -- People own dogs. ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • [PATCH] small dev_t fix
      ... Will check over time what form my patches got in the current tree. ... storage following; thus, no action was required to go to ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)