running wpa_supplicant during saving hibernation image
Hi,
I'm running an iSCSI rooted system over WPA authenticated wireless network. I'd like to enable hibernation on it (restore from S3 seems unreliable on this Acer Aspire 2920 notebook). The problem is that to have network access for saving the hibernation image, wpa_supplicant must be running, but as a user space process, it's frozen before creating the hibernation snapshot. Is there a way to thaw it after taking the snapshot, or to skip freezing it? I found no interface for setting the corresponding task flag, but I may have missed something. It's running from rootfs, so I guess either would be safe. -- Well, currently it's logging into a tmpfs file, is that permissible (being swappable)?
Signature · 2 lines
Thanks for your time, Feri.
Quoted 11 lines · Ferenc Wagner
I'm running an iSCSI rooted system over WPA authenticated wireless network. I'd like to enable hibernation on it (restore from S3 seems unreliable on this Acer Aspire 2920 notebook). The problem is that to have network access for saving the hibernation image,
wpa_supplicantmust be running, but as a user space process, it's frozen before creating the hibernation snapshot. Is there a way to thaw it after taking the snapshot, or to skip freezing it? I found no interface for setting the corresponding task flag, but I may have missed something. It's running from rootfs, so I guess either would be safe. -- Well, currently it's logging into a tmpfs file, is that permissible (being swappable)?
I suppose the lack of replies means there's no such interface, so I'm considering writing a module for setting the PF_NOFREEZE task flag of a given process. How can I soundly implement this? Sched.h says "only the _current_ task can read/write to tsk->flags", but that would be inconvenient, requiring modification of wpa_supplicant as well. Is there a way around, besides ptrace? Why isn't flipping a flag bit atomic, anyway? Or am I completely off the map with this whole idea?
Signature · 2 lines
Thanks, Feri.