mbox series

[0/1] PM: hibernate: Fix swap file marking

Message ID 20210122161941.1080-1-laurentbadel@eaton.com
Headers show
Series PM: hibernate: Fix swap file marking | expand

Message

Badel, Laurent Jan. 22, 2021, 4:19 p.m. UTC
It seems that the swap writer might need be flushed after marking the 
signature into the swap files, otherwise the system may power off before
the signature is written. This is what happened on my system (the swap 
file was missing the hibernation signature) and this patch allowed it
to restore from the hibernation image. 

I don't know if it might be due to a peculiarity of the system I am using,
it is a custom board with an iMX28 SoC and the hibernation image is stored
on the gpmi nand flash.

Best regards,

Laurent

Laurent Badel (1):
  PM: hibernate: flush swap writer after marking

 kernel/power/swap.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)