Freezer: make kernel threads nonfreezable by default
[deliverable/linux.git] / fs / lockd / svc.c
index 26809325469cdc73bafa76dec33e52cfa046f548..9fcdef50aad6793ccadb8680b44c2c826e1706a3 100644 (file)
@@ -25,6 +25,7 @@
 #include <linux/smp.h>
 #include <linux/smp_lock.h>
 #include <linux/mutex.h>
+#include <linux/freezer.h>
 
 #include <linux/sunrpc/types.h>
 #include <linux/sunrpc/stats.h>
@@ -119,6 +120,7 @@ lockd(struct svc_rqst *rqstp)
        complete(&lockd_start_done);
 
        daemonize("lockd");
+       set_freezable();
 
        /* Process request with signals blocked, but allow SIGKILL.  */
        allow_signal(SIGKILL);
This page took 0.029572 seconds and 5 git commands to generate.