linux/drivers/mtd
Rafael J. Wysocki 8314418629 Freezer: make kernel threads nonfreezable by default
Currently, the freezer treats all tasks as freezable, except for the kernel
threads that explicitly set the PF_NOFREEZE flag for themselves.  This
approach is problematic, since it requires every kernel thread to either
set PF_NOFREEZE explicitly, or call try_to_freeze(), even if it doesn't
care for the freezing of tasks at all.

It seems better to only require the kernel threads that want to or need to
be frozen to use some freezer-related code and to remove any
freezer-related code from the other (nonfreezable) kernel threads, which is
done in this patch.

The patch causes all kernel threads to be nonfreezable by default (ie.  to
have PF_NOFREEZE set by default) and introduces the set_freezable()
function that should be called by the freezable kernel threads in order to
unset PF_NOFREEZE.  It also makes all of the currently freezable kernel
threads call set_freezable(), so it shouldn't cause any (intentional)
change of behaviour to appear.  Additionally, it updates documentation to
describe the freezing of tasks more accurately.

[akpm@linux-foundation.org: build fixes]
Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
Acked-by: Nigel Cunningham <nigel@nigel.suspend2.net>
Cc: Pavel Machek <pavel@ucw.cz>
Cc: Oleg Nesterov <oleg@tv-sign.ru>
Cc: Gautham R Shenoy <ego@in.ibm.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2007-07-17 10:23:02 -07:00
..
chips [MTD] [CHIPS] Remove MTD_OBSOLETE_CHIPS (jedec, amd_flash, sharp) 2007-05-09 13:34:37 +01:00
devices [MIPS] Remove Momenco Ocelot C support 2007-07-10 17:33:01 +01:00
maps [MIPS] remove LASAT Networks platforms support 2007-07-10 17:33:04 +01:00
nand [MIPS] Remove Momenco Ocelot C support 2007-07-10 17:33:01 +01:00
onenand Fix occurrences of "the the " 2007-05-09 08:57:56 +02:00
ubi Freezer: make kernel threads nonfreezable by default 2007-07-17 10:23:02 -07:00
afs.c
cmdlinepart.c
ftl.c [PATCH] remove many unneeded #includes of sched.h 2007-02-14 08:09:54 -08:00
inftlcore.c
inftlmount.c PCI: Cleanup the includes of <linux/pci.h> 2007-05-02 19:02:35 -07:00
Kconfig [S390] Kconfig: menus with depends on HAS_IOMEM. 2007-05-10 15:46:07 +02:00
Makefile [MTD] generalise the handling of MTD-specific superblocks 2007-05-11 12:14:15 +01:00
mtd_blkdevs.c Freezer: make kernel threads nonfreezable by default 2007-07-17 10:23:02 -07:00
mtdblock_ro.c
mtdblock.c
mtdchar.c [MTD] Fix length comparison in MEMREADOOB 2007-04-17 13:40:00 -04:00
mtdconcat.c [MTD] [NAND] make oobavail public 2007-03-08 09:17:43 +00:00
mtdcore.c [PATCH] remove many unneeded #includes of sched.h 2007-02-14 08:09:54 -08:00
mtdpart.c [MTD] Delete allegedly obsolete "bank_size" field of mtd_info. 2007-05-09 13:26:52 +01:00
mtdsuper.c [MTD] Fix error checking after get_mtd_device() in get_sb_mtd functions 2007-06-01 19:21:59 +01:00
nftlcore.c PCI: Cleanup the includes of <linux/pci.h> 2007-05-02 19:02:35 -07:00
nftlmount.c
redboot.c [MTD] Improve heuristic for detecting wrong-endian RedBoot partition table 2007-02-10 09:58:31 +00:00
rfd_ftl.c Merge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux-2.6 2007-01-18 10:34:51 +11:00
ssfdc.c [MTD] Fix ssfdc blksize typo 2006-12-11 09:43:38 +00:00