Re: [PATCH] Allow memory hotplug and hibernation in the same kernel

From: KOSAKI Motohiro
Date: Fri Nov 13 2009 - 06:32:50 EST


> (cc to goto-san)
>
> > Allow memory hotplug and hibernation in the same kernel
> >
> > Memory hotplug and hibernation was excluded in Kconfig. This is obviously
> > a problem for distribution kernels who want to support both in the same
> > image.
>
> Sure.
>
> This exclusion is nearly meaningless. if anybody remove cpu, memory and/or
> various peripheral from hibernated machine. the system might not resume.
> it's obvious. memory is not special.
>
> Documentation/power/swsusp.txt explicitly said
>
> * BIG FAT WARNING *********************************************************
> *
> * If you touch anything on disk between suspend and resume...
> * ...kiss your data goodbye.
>
>
> I like this patch.
>
>
> >
> > After some discussions with Rafael and others the only problem is
> > with parallel memory hotadd or removal while a hibernation operation
> > is in process. It was also working for s390 before.
> >
> > This patch removes the Kconfig level exclusion, and simply
> > makes the memory add / remove functions grab the pm_mutex
> > to exclude against hibernation.
> >
> > This is a 2.6.32 candidate.

2.6.32?




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