android_kernel_xiaomi_sm8350/arch
Sukadev Bhattiprolu f400e198b2 [PATCH] pidspace: is_init()
This is an updated version of Eric Biederman's is_init() patch.
(http://lkml.org/lkml/2006/2/6/280).  It applies cleanly to 2.6.18-rc3 and
replaces a few more instances of ->pid == 1 with is_init().

Further, is_init() checks pid and thus removes dependency on Eric's other
patches for now.

Eric's original description:

	There are a lot of places in the kernel where we test for init
	because we give it special properties.  Most  significantly init
	must not die.  This results in code all over the kernel test
	->pid == 1.

	Introduce is_init to capture this case.

	With multiple pid spaces for all of the cases affected we are
	looking for only the first process on the system, not some other
	process that has pid == 1.

Signed-off-by: Eric W. Biederman <ebiederm@xmission.com>
Signed-off-by: Sukadev Bhattiprolu <sukadev@us.ibm.com>
Cc: Dave Hansen <haveblue@us.ibm.com>
Cc: Serge Hallyn <serue@us.ibm.com>
Cc: Cedric Le Goater <clg@fr.ibm.com>
Cc: <lxc-devel@lists.sourceforge.net>
Acked-by: Paul Mackerras <paulus@samba.org>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
2006-09-29 09:18:12 -07:00
..
alpha [PATCH] pidspace: is_init() 2006-09-29 09:18:12 -07:00
arm [PATCH] pidspace: is_init() 2006-09-29 09:18:12 -07:00
arm26 [PATCH] pidspace: is_init() 2006-09-29 09:18:12 -07:00
avr32 [PATCH] AVR32: Use unsigned long flags for saving interrupt state 2006-09-27 08:26:13 -07:00
cris
frv [PATCH] FRV: permit __do_IRQ() to be dispensed with 2006-09-26 08:48:53 -07:00
h8300 [PATCH] reduce MAX_NR_ZONES: fix MAX_NR_ZONES array initializations 2006-09-26 08:48:46 -07:00
i386 [PATCH] pidspace: is_init() 2006-09-29 09:18:12 -07:00
ia64 [PATCH] pidspace: is_init() 2006-09-29 09:18:12 -07:00
m32r [PATCH] pidspace: is_init() 2006-09-29 09:18:12 -07:00
m68k [PATCH] pidspace: is_init() 2006-09-29 09:18:12 -07:00
m68knommu [PATCH] reduce MAX_NR_ZONES: fix MAX_NR_ZONES array initializations 2006-09-26 08:48:46 -07:00
mips [PATCH] pidspace: is_init() 2006-09-29 09:18:12 -07:00
parisc [PATCH] Fix conflict with the is_init identifier on parisc 2006-09-29 09:18:12 -07:00
powerpc [PATCH] pidspace: is_init() 2006-09-29 09:18:12 -07:00
ppc [PATCH] pidspace: is_init() 2006-09-29 09:18:12 -07:00
s390 [PATCH] pidspace: is_init() 2006-09-29 09:18:12 -07:00
sh [PATCH] pidspace: is_init() 2006-09-29 09:18:12 -07:00
sh64 [PATCH] pidspace: is_init() 2006-09-29 09:18:12 -07:00
sparc [PATCH] Standardize pxx_page macros 2006-09-26 08:48:51 -07:00
sparc64 Merge master.kernel.org:/pub/scm/linux/kernel/git/davem/sparc-2.6 2006-09-27 08:32:01 -07:00
um [PATCH] pidspace: is_init() 2006-09-29 09:18:12 -07:00
v850 [PATCH] v850: call init_page_count() instead of set_page_count() 2006-07-31 13:28:38 -07:00
x86_64 [PATCH] pidspace: is_init() 2006-09-29 09:18:12 -07:00
xtensa [PATCH] pidspace: is_init() 2006-09-29 09:18:12 -07:00