Re: [linux-pm] [PATCH -mm] kexec jump -v9

From: Rafael J. Wysocki
Date: Wed Mar 12 2008 - 17:54:18 EST


On Wednesday, 12 of March 2008, Alan Stern wrote:
> On Wed, 12 Mar 2008, Huang, Ying wrote:
>
> > I think "kexec based hibernation" is the only currently available
> > possible method to write out image without freezer (after driver works
> > are done). If other process is running, how to prevent them from writing
> > to disk without freezing them in current implementation?
>
> This is a very good question.
>
> It's a matter of managing the block layer's request queues. Somehow
> the existing I/O requests must remain blocked while the requests needed
> for writing the image must be allowed to proceed.
>
> I don't know what would be needed to make this work, but it ought to be
> possible somehow...

Yes, it ought to be possible.

Ultimately, IMHO, we should put all devices unnecessary for saving the image
(and doing some eye-candy work) into low power states before the image is
created and keep them in low power states until the system is eventually
powered off.

If this is done, the remaining problem is the handling of the devices that we
need to save the image. I believe that will be achievable without using the
freezer.

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