kernel_optimize_test/include
Oleg Nesterov aa55a08687 [PATCH] fix TASK_STOPPED vs TASK_NONINTERACTIVE interaction
do_signal_stop:

	for_each_thread(t) {
		if (t->state < TASK_STOPPED)
			++sig->group_stop_count;
	}

However, TASK_NONINTERACTIVE > TASK_STOPPED, so this loop will not
count TASK_INTERRUPTIBLE | TASK_NONINTERACTIVE threads.

See also wait_task_stopped(), which checks ->state > TASK_STOPPED.

Signed-off-by: Oleg Nesterov <oleg@tv-sign.ru>

[ We really probably should always use the appropriate bitmasks to test
  task states, not do it like this. Using something like

	#define TASK_RUNNABLE (TASK_RUNNING | TASK_INTERRUPTIBLE | \
				TASK_UNINTERRUPTIBLE | TASK_NONINTERACTIVE)

  and then doing "if (task->state & TASK_RUNNABLE)" or similar. But the
  ordering of the task states is historical, and keeping the ordering
  does make sense regardless. ]

Signed-off-by: Linus Torvalds <torvalds@osdl.org>
2005-09-29 09:05:52 -07:00
..
acpi
asm-alpha
asm-arm [PATCH] arm/rpc iomem annotations 2005-09-29 08:46:26 -07:00
asm-arm26
asm-cris
asm-frv
asm-generic [PATCH] mm: move_pte to remap ZERO_PAGE 2005-09-28 07:46:40 -07:00
asm-h8300
asm-i386
asm-ia64 [PATCH] ia64 basic __user annotations 2005-09-29 08:46:27 -07:00
asm-m32r [PATCH] m32r: more basic __user annotations 2005-09-26 18:29:50 -07:00
asm-m68k
asm-m68knommu
asm-mips [PATCH] mm: move_pte to remap ZERO_PAGE 2005-09-28 07:46:40 -07:00
asm-parisc
asm-powerpc
asm-ppc [PATCH] mv64x60 iomem annotations 2005-09-29 08:46:27 -07:00
asm-ppc64 [PATCH] ppc64 get_user annotations 2005-09-29 08:46:27 -07:00
asm-s390 [PATCH] s390 signal annotations 2005-09-29 08:46:27 -07:00
asm-sh
asm-sh64
asm-sparc
asm-sparc64 [SPARC64]: Add missing IDs for newer cpus. 2005-09-27 22:50:06 -07:00
asm-um
asm-v850
asm-x86_64
asm-xtensa
linux [PATCH] fix TASK_STOPPED vs TASK_NONINTERACTIVE interaction 2005-09-29 09:05:52 -07:00
math-emu
media
mtd
net
pcmcia [PATCH] yenta: auto-tune EnE bridges for CardBus cards 2005-09-26 13:09:20 +02:00
rdma [IB] uverbs: Close some exploitable races 2005-09-26 13:01:03 -07:00
rxrpc
scsi
sound
video