]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
[PATCH] s390: fix cmm kernel thread handling
authorHeiko Carstens <heiko.carstens@de.ibm.com>
Tue, 26 Sep 2006 06:33:11 +0000 (23:33 -0700)
committerLinus Torvalds <torvalds@g5.osdl.org>
Tue, 26 Sep 2006 15:49:11 +0000 (08:49 -0700)
commite8216dee838c09776680a6f1a2e54d81f3cdfa14
treea342f566fb564344911998088a6de92227a932dc
parente8df8c3304cfc7d68e9a6a7b6df6c64783cd6991
[PATCH] s390: fix cmm kernel thread handling

Convert cmm's usage of kernel_thread to kthread_run.  Also create the
cmmthread at module load time, so it is possible to check if creation of
the thread fails.

In addition the cmmthread now gets terminated when the module gets unloaded
instead of leaving a stale kernel thread.  Also check the return values of
other registration functions at module load and handle their return values
appropriately.

Cc: Martin Schwidefsky <schwidefsky@de.ibm.com>
Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
arch/s390/mm/cmm.c