Messages in this thread | | | Date | Wed, 4 Aug 2010 15:18:39 -0700 | From | Andrew Morton <> | Subject | Re: [PATCH -mm] hibernation: freeze swap at hibernation v2 |
| |
On Wed, 4 Aug 2010 13:57:39 +0900 KAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com> wrote:
> At taking memory snapshot in hibernate_snapshot(), all (directly called) > memory allocator uses GFP_ATOMIC. And it seems swap-misusage during > hibernation never occurs. > > But, from pessimistic point of view, there is no guarantee to trust > any page allcation doesn't have __GFP_WAIT. It's better to have an indication > "we enter hibernation, don't use swap!". > > This patch tries to freeze new-swap-allocation during hibernation. > (We can trust all user processes are freezed, then, dont't take care of swapin) > > By this, no updates will be happen to swap_map[] among hibernate_snapshot() > to save_image(). swap is thawed when swsusp_free() is called. > We can trust swap-corruption will never happen without any doubts. >
Confused (as usual).
The above seems to be saying "there isn't a bug, but perhaps there is one that we don't know about so let's fix it in case it's there". Or something.
But this email thread used to be called "Memory corruption during hibernation since 2.6.31" which sounds a heck of a lot more serious.
Does this patch fix memory corruption? If so, why was that corruption occurring, and under which circumstances?
Once all this is known, let's decide whether -stable needs this patch.
| |