Freezer: make kernel threads nonfreezable by default
[sfrench/cifs-2.6.git] / drivers / scsi / libsas / sas_scsi_host.c
index d70ddfda93fc968cd2d001f80f0a3c1487b32a8c..9c5342e7a69c6a7b9e6625d5d6c69e64b48c874c 100644 (file)
@@ -40,6 +40,7 @@
 
 #include <linux/err.h>
 #include <linux/blkdev.h>
+#include <linux/freezer.h>
 #include <linux/scatterlist.h>
 
 /* ---------- SCSI Host glue ---------- */
@@ -868,8 +869,6 @@ static int sas_queue_thread(void *_sas_ha)
 {
        struct sas_ha_struct *sas_ha = _sas_ha;
 
-       current->flags |= PF_NOFREEZE;
-
        while (1) {
                set_current_state(TASK_INTERRUPTIBLE);
                schedule();