Re: [PATCH] [3/48] Suspend2 2.1.9.8 for 2.6.12: 301-proc-acpi-sleep-activate-hook.patch

From: Nigel Cunningham (ncunningham_at_cyclades.com)
Date: 07/12/05

  • Next message: Nigel Cunningham: "Re: [PATCH] [13/48] Suspend2 2.1.9.8 for 2.6.12: 403-debug-pagealloc-support.patch"
    To: Christoph Hellwig <hch@infradead.org>
    Date:	Tue, 12 Jul 2005 16:45:04 +1000
    
    

    Hi.

    On Mon, 2005-07-11 at 09:03, Christoph Hellwig wrote:
    > Please add an explanation why this is nessecary. Big NACK for the patch as-is, but
    > to find a proper solution we need to know what you're actually doing.

    When the user has an initrd or initramfs, they're supposed to include

    echo > /proc/software_suspend/do_resume

    at the point in their initrd where drivers needed for accessing the
    image, encryption keys and so on have been set up, but the root fs has
    not yet been mounted. If they don't do that, we should scream loudly,
    because mounting the root fs (even read only) will replay the journal,
    making the image not match what is on disk. This in turn can and
    probably will result in hard disk corruption if they echo to do_resume
    from say /etc/rc.d/rc.sysinit.

    In addition, the try_to_freeze call is needed because, having loaded an
    image, we freeze kernel threads before doing the atomic restore.

    Regards,

    Nigel

    -- 
    Evolution.
    Enumerate the requirements.
    Consider the interdependencies.
    Calculate the probabilities.
    Be amazed that people believe it happened. 
    -
    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: Nigel Cunningham: "Re: [PATCH] [13/48] Suspend2 2.1.9.8 for 2.6.12: 403-debug-pagealloc-support.patch"

    Relevant Pages

    • Re: Booting from USB with initrd
      ... but it shouldn't matter much since I've not been able to load the initrd ... to mount on root fs. ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: init process freezed after run_init_process
      ... I got the same problem without linuxrc. ... If you do provide an initrd= thing, the initrd is being looked for ... If the root is the same as the ramdisk, then the initrd is _not_ run ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: GIVEUP [bootup kernel panic 2.6.x] no root partition detected?
      ... Did you try to boot 2.6 kernel using initrd as the initial root. ... should be ok as it is RAM disk, and from that try to mount / or ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: Booting 2.6.10-rc3
      ... try passing the root fs as something like: ... Ok, booting kernel ... If you did not build an initrd, you do not need reference to an initrd in the ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • [PATCH] documentation: Documentation/initrd.txt
      ... the boot loader loads the kernel and the initial RAM disk ... frees the memory used by initrd ... initrd is mounted read-write as root ... linuxrc places the root file system at the root directory using the ...
      (Linux-Kernel)