> > Basically by saying you will prevent swap is that you will make a > situation > > where you ask for a page of memory and don't get it because you are > > suspending. > > Nothing the kernel needs to touch is swappable. by this point the > suspend process only needs kernel stuff, userland has done running (but > it still schedulnig until we disable interrupts). We don't swap device > softcs etc, for obvious reasons. > > Ok, so there is one kernel thing that is swappable: pipe buffers, but > they are not dependant for suspend (see above). > > As long as by the time we're fiddling with this we're ok for suspending there is nothing wrong with this. We have to be certain though.
Failing that being a problem I see nothing fundamentally wrong with this, but it will need testing with swapkill, etc. I'd hate for it to introduce a bug which is only found months later when someone beats it up to try to work on something else.