From: Eric W. Biederman This patch modifies the qeth_recover thread to be started with kthread_run not a combination of kernel_thread and daemonize. Resulting in slightly simpler and more maintainable code. Cc: Frank Pavlic Signed-off-by: Eric W. Biederman Cc: Heiko Carstens Cc: Martin Schwidefsky Signed-off-by: Andrew Morton --- drivers/s390/net/qeth_main.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff -puN drivers/s390/net/qeth_main.c~s390-qeth-convert-to-use-the-kthread-api drivers/s390/net/qeth_main.c --- a/drivers/s390/net/qeth_main.c~s390-qeth-convert-to-use-the-kthread-api +++ a/drivers/s390/net/qeth_main.c @@ -50,6 +50,7 @@ #include #include #include +#include #include #include @@ -957,7 +958,6 @@ qeth_recover(void *ptr) int rc = 0; card = (struct qeth_card *) ptr; - daemonize("qeth_recover"); QETH_DBF_TEXT(trace,2,"recover1"); QETH_DBF_HEX(trace, 2, &card, sizeof(void *)); if (!qeth_do_run_thread(card, QETH_RECOVER_THREAD)) @@ -1014,7 +1014,7 @@ qeth_start_kernel_thread(struct work_str card->write.state != CH_STATE_UP) return; if (qeth_do_start_thread(card, QETH_RECOVER_THREAD)) - kernel_thread(qeth_recover, (void *) card, SIGCHLD); + kthread_run(qeth_recover, card, "qeth_recover"); } _