lkml.org 
[lkml]   [2013]   [Jan]   [18]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectSuspend to RAM - freeze & sync
Hello,
I'm trying to implement feature that removes cryptsetup keys from RAM on
suspend to RAM: mounts ramfs, unpacks initramfs to ramfs, moves /proc
/dev and /sys to ramfs, chroots, calls luksSuspend, suspends system
using /sys/power/state, after resume calls luksResume and cleans up.
However, there is a small issue I wasn't able to solve: after calling
luksSuspend, all attempts to access suspended device blocks - so most
likely some processes won't be able to freeze. The same issue will be
with sync just before suspend - if there are some data to be written,
sync() blocks. If I comment out freeze and sync from the suspend code,
it suspends (and wakes up) just fine - however, that patch will never be
accepted.
Is there any *correct* way to do this? (Skip freeze/sync on demand)?
Thanks
Radek Pilar

[unhandled content-type:application/pgp-signature]
\
 
 \ /
  Last update: 2013-01-18 17:01    [W:0.068 / U:0.880 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site