The patch titled ibmphp: partially convert to use the kthreads API has been removed from the -mm tree. Its filename was ibmphp-partially-convert-to-use-the-kthreads-api.patch This patch was dropped because an updated version will be merged ------------------------------------------------------ Subject: ibmphp: partially convert to use the kthreads API From: Eric W. Biederman <ebiederm@xxxxxxxxxxxx> kthread_run replaces kernel_thread and dameonize. allow_signal is unnecessary and has been removed. tid_poll was unused and has been removed. akpm: needs to be converted to use kthread_should_stop() and kthread_stop(). akpm: and mutexes! Cc: Kristen Carlson Accardi <kristen.c.accardi@xxxxxxxxx> Cc: Jyoti Shah <jshah@xxxxxxxxxx> Cc: Greg Kroah-Hartman <gregkh@xxxxxxx> Signed-off-by: Eric W. Biederman <ebiederm@xxxxxxxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- drivers/pci/hotplug/ibmphp_hpc.c | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) diff -puN drivers/pci/hotplug/ibmphp_hpc.c~ibmphp-partially-convert-to-use-the-kthreads-api drivers/pci/hotplug/ibmphp_hpc.c --- a/drivers/pci/hotplug/ibmphp_hpc.c~ibmphp-partially-convert-to-use-the-kthreads-api +++ a/drivers/pci/hotplug/ibmphp_hpc.c @@ -35,6 +35,7 @@ #include <linux/smp_lock.h> #include <linux/init.h> #include <linux/mutex.h> +#include <linux/kthread.h> #include "ibmphp.h" @@ -102,7 +103,6 @@ static int to_debug = 0; // global variables //---------------------------------------------------------------------------- static int ibmphp_shutdown; -static int tid_poll; static struct mutex sem_hpcaccess; // lock access to HPC static struct semaphore semOperations; // lock all operations and // access to data structures @@ -138,7 +138,6 @@ void __init ibmphp_hpc_initvars (void) init_MUTEX_LOCKED (&sem_exit); to_debug = 0; ibmphp_shutdown = 0; - tid_poll = 0; debug ("%s - Exit\n", __FUNCTION__); } @@ -1061,12 +1060,8 @@ static int hpc_poll_thread (void *data) { debug ("%s - Entry\n", __FUNCTION__); - daemonize("hpc_poll"); - allow_signal(SIGKILL); - poll_hpc (); - tid_poll = 0; debug ("%s - Exit\n", __FUNCTION__); return 0; } @@ -1079,17 +1074,18 @@ static int hpc_poll_thread (void *data) *---------------------------------------------------------------------*/ int __init ibmphp_hpc_start_poll_thread (void) { + struct task_struct *task; int rc = 0; debug ("%s - Entry\n", __FUNCTION__); - tid_poll = kernel_thread (hpc_poll_thread, NULL, 0); - if (tid_poll < 0) { + task = kthread_run(hpc_poll_thread, NULL, "hpc_poll"); + if (IS_ERR(task)) { err ("%s - Error, thread not started\n", __FUNCTION__); rc = -1; } - debug ("%s - Exit tid_poll[%d] rc[%d]\n", __FUNCTION__, tid_poll, rc); + debug ("%s - Exit rc[%d]\n", __FUNCTION__, rc); return rc; } _ Patches currently in -mm which might be from ebiederm@xxxxxxxxxxxx are origin.patch git-arm.patch iop13xx-msi-support-rev6.patch dvb_en_50221-convert-to-kthread-api.patch fix-i-oat-for-kexec.patch ibmphp-partially-convert-to-use-the-kthreads-api.patch cpci_hotplug-partially-convert-to-use-the-kthread-api.patch msi-fix-arm-compile.patch s390-scsi-zfcp_erp-partially-convert-to-use-the-kthread-api.patch s390-qeth-convert-to-use-the-kthread-api.patch s390-net-lcs-convert-to-the-kthread-api.patch sas_scsi_host-partially-convert-to-use-the-kthread-api.patch sparc64-powerc-convert-to-use-the-kthread-api.patch i386-irq-kill-irq-compression.patch i386-map-enough-initial-memory-to-create-lowmem-mappings-fix.patch i386-efi-fix-proc-iomem-type-for-kexec-tools.patch clone-flag-clone_parent_tidptr-leaves-invalid-results-in-memory.patch allow-access-to-proc-pid-fd-after-setuid.patch merge-sys_clone-sys_unshare-nsproxy-and-namespace.patch fix-race-between-proc_get_inode-and-remove_proc_entry.patch fix-race-between-proc_readdir-and-remove_proc_entry.patch procfs-reorder-struct-pid_dentry-to-save-space-on-64bit-archs-and-constify-them.patch tty-remove-unnecessary-export-of-proc_clear_tty.patch tty-simplify-calling-of-put_pid.patch tty-introduce-no_tty-and-use-it-in-selinux.patch remove-hardcoding-of-hard_smp_processor_id-on-up.patch use-the-apic-to-determine-the-hardware-processor-id-i386.patch use-the-apic-to-determine-the-hardware-processor-id-x86_64.patch always-ask-the-hardware-to-obtain-hardware-processor-id-ia64.patch proc-cleanup-use-seq_release_private-where-appropriate.patch smbfs-remove-unnecessary-allow_signal.patch pnpbios-conert-to-use-the-kthread-api.patch kthread-dont-depend-on-work-queues-take-2.patch change-reparent_to_init-to-reparent_to_kthreadd.patch wait_for_helper-remove-unneeded-do_sigaction.patch worker_thread-dont-play-with-sigchld-and-numa-policy.patch change-kernel-threads-to-ignore-signals-instead-of-blocking-them.patch fix-kthread_create-vs-freezer-theoretical-race.patch remvoe-kthread_bind-call-from-_cpu_down.patch nfsd-nfs4state-remove-unnecessary-daemonize-call.patch statically-initialize-struct-pid-for-swapper.patch explicitly-set-pgid-and-sid-of-init-process.patch use-struct-pid-parameter-in-copy_process.patch use-task_pgrp-task_session-in-copy_process.patch kill-unused-sesssion-and-group-values-in-rocket-driver.patch fix-some-coding-style-errors-in-autofs.patch replace-pid_t-in-autofs-with-struct-pid-reference.patch dont-init-pgrp-and-__session-in-init_signals.patch mutex-subsystem-synchro-test-module-convert-to-the-kthread-api.patch vdso-print-fatal-signals-use-ctl_unnumbered.patch - To unsubscribe from this list: send the line "unsubscribe mm-commits" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html