Suspend problem on 2.6.x

Ben Dooks ben-mtd at fluff.org
Fri Oct 1 07:23:32 EDT 2004


mtdblockd when running on 2.6 is either ignorning or
not dealing with the suspend-to-memory request, and therefore
the system is not shutting down when asked to.

bash-2.05a# echo mem > /sys/power/state
Stopping tasks: ==
 stopping tasks failed (1 tasks remaining)
Restarting tasks...<6> Strange, mtdblockd not stopped
 done
bash-2.05a#

I have worked round this for the moment by
adding PF_NOFREEZE to the current->flags at the start of 
mtd_bldevs.c:mtd_blktrans_thread()

-- 
Ben (ben at fluff.org, http://www.fluff.org/)

  'a smiley only costs 4 bytes'




More information about the linux-mtd mailing list