mtd: nand: make suspend work if device is accessed by kernel threads.
commit49ef3c6ee11e221b26caf4ac55c2702a37cca103
authorMaxim Levitsky <maximlevitsky@gmail.com>
Mon, 22 Feb 2010 18:39:34 +0000 (22 20:39 +0200)
committerDavid Woodhouse <David.Woodhouse@intel.com>
Fri, 26 Feb 2010 17:43:21 +0000 (26 17:43 +0000)
tree958cc2cd058f1ad1919ddc1f7f2ef0fd14995158
parent026ec57886b67c092bf7baecd029a7c1c4998c28
mtd: nand: make suspend work if device is accessed by kernel threads.

Since all userspace threads are frozen at the time the nand_suspend is called,
they aren't inside any nand function.

We don't call try_to_freeze in nand ether. Thus the only user that can
be inside the nand functions is an non freezeable kernel thread. Thus we
can safely wait for it to finish.

Signed-off-by: Maxim Levitsky <maximlevitsky@gmail.com>
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
drivers/mtd/nand/nand_base.c