- kthread-convert-lock-to-use-kthread.patch removed from -mm tree

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



The patch titled

     kthread: convert lock to use kthread

has been removed from the -mm tree.  Its filename is

     kthread-convert-lock-to-use-kthread.patch

This patch was dropped because it was merged into mainline or a subsystem tree

------------------------------------------------------
Subject: kthread: convert lock to use kthread
From: "Serge E. Hallyn" <serue@xxxxxxxxxx>


Update lockd/clntlock.c to use kthread instead of a deprecated
kernel_thread.

Signed-off-by: Serge E. Hallyn <serue@xxxxxxxxxx>
Cc: Trond Myklebust <trond.myklebust@xxxxxxxxxx>
Cc: Neil Brown <neilb@xxxxxxx>
Signed-off-by: Andrew Morton <akpm@xxxxxxxx>
---

 fs/lockd/clntlock.c |    8 ++++++--
 1 files changed, 6 insertions(+), 2 deletions(-)

diff -puN fs/lockd/clntlock.c~kthread-convert-lock-to-use-kthread fs/lockd/clntlock.c
--- 25/fs/lockd/clntlock.c~kthread-convert-lock-to-use-kthread	Mon Jun 19 14:50:59 2006
+++ 25-akpm/fs/lockd/clntlock.c	Mon Jun 19 14:51:31 2006
@@ -14,6 +14,7 @@
 #include <linux/sunrpc/svc.h>
 #include <linux/lockd/lockd.h>
 #include <linux/smp_lock.h>
+#include <linux/kthread.h>
 
 #define NLMDBG_FACILITY		NLMDBG_CLIENT
 
@@ -177,13 +178,17 @@ static void nlmclnt_finish_reclaim(struc
 void
 nlmclnt_recovery(struct nlm_host *host, u32 newstate)
 {
+	struct task_struct *tsk;
+
 	if (host->h_nsmstate == newstate)
 		return;
 	host->h_nsmstate = newstate;
 	if (!host->h_reclaiming++) {
 		nlm_get_host(host);
 		__module_get(THIS_MODULE);
-		if (kernel_thread(reclaimer, host, CLONE_KERNEL) < 0)
+		tsk = kthread_run(reclaimer, host,
+					"%s-reclaim", host->h_name);
+		if (IS_ERR(tsk))
 			module_put(THIS_MODULE);
 	}
 }
@@ -196,7 +201,6 @@ reclaimer(void *ptr)
 	struct file_lock *fl, *next;
 	u32 nsmstate;
 
-	daemonize("%s-reclaim", host->h_name);
 	allow_signal(SIGKILL);
 
 	/* This one ensures that our parent doesn't terminate while the
_

Patches currently in -mm which might be from serue@xxxxxxxxxx are

origin.patch
git-s390.patch
s390-move-var-declarations-behind-ifdef.patch
kthread-update-loopc-to-use-kthread.patch
kthread-update-loopc-to-use-kthread-fix.patch
kthread-convert-smbiod.patch
kthread-convert-smbiod-tidy.patch
kthread-convert-stop_machine-into-a-kthread.patch
proc-sysctl-add-_proc_do_string-helper.patch
namespaces-add-nsproxy.patch
namespaces-add-nsproxy-dont-include-compileh.patch
namespaces-incorporate-fs-namespace-into-nsproxy.patch
namespaces-utsname-introduce-temporary-helpers.patch
namespaces-utsname-switch-to-using-uts-namespaces.patch
namespaces-utsname-switch-to-using-uts-namespaces-alpha-fix.patch
namespaces-utsname-switch-to-using-uts-namespaces-cleanup.patch
namespaces-utsname-use-init_utsname-when-appropriate.patch
namespaces-utsname-use-init_utsname-when-appropriate-cifs-update.patch
namespaces-utsname-implement-utsname-namespaces.patch
namespaces-utsname-implement-utsname-namespaces-export.patch
namespaces-utsname-implement-utsname-namespaces-dont-include-compileh.patch
namespaces-utsname-implement-utsname-namespaces-remove-unused-exit_utsname.patch
namespaces-utsname-sysctl-hack.patch
namespaces-utsname-sysctl-hack-cleanup.patch
namespaces-utsname-sysctl-hack-cleanup-2.patch
namespaces-utsname-sysctl-hack-cleanup-2-fix.patch
namespaces-utsname-remove-system_utsname.patch
namespaces-utsname-implement-clone_newuts-flag.patch
uts-copy-nsproxy-only-when-needed.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

[Index of Archives]     [Kernel Newbies FAQ]     [Kernel Archive]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [Bugtraq]     [Photo]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]

  Powered by Linux