Freezer: make kernel threads nonfreezable by default
[deliverable/linux.git] / drivers / scsi / scsi_error.c
index 9adb64ac054c68f869d83ede1b82d42edbdb4461..8a525abda30fcad2d7b5cf54dfab5b46bc067e68 100644 (file)
@@ -19,6 +19,7 @@
 #include <linux/timer.h>
 #include <linux/string.h>
 #include <linux/kernel.h>
+#include <linux/freezer.h>
 #include <linux/kthread.h>
 #include <linux/interrupt.h>
 #include <linux/blkdev.h>
@@ -1516,8 +1517,6 @@ int scsi_error_handler(void *data)
 {
        struct Scsi_Host *shost = data;
 
-       current->flags |= PF_NOFREEZE;
-
        /*
         * We use TASK_INTERRUPTIBLE so that the thread is not
         * counted against the load average as a running process.
This page took 0.043716 seconds and 5 git commands to generate.