Freezer: make kernel threads nonfreezable by default
[linux-2.6-block.git] / fs / nfsd / nfssvc.c
index ff55950efb437446e1acc7b42a2dd43c9fcc2f71..5c8192bcbced40447bd291845591beeec8677628 100644 (file)
@@ -19,6 +19,7 @@
 #include <linux/slab.h>
 #include <linux/smp.h>
 #include <linux/smp_lock.h>
+#include <linux/freezer.h>
 #include <linux/fs_struct.h>
 
 #include <linux/sunrpc/types.h>
@@ -432,6 +433,7 @@ nfsd(struct svc_rqst *rqstp)
         * dirty pages.
         */
        current->flags |= PF_LESS_THROTTLE;
+       set_freezable();
 
        /*
         * The main request loop