w1: w1_process() is not freezable kthread
authorJiri Kosina <jkosina@suse.cz>
Wed, 10 Feb 2016 10:41:08 +0000 (11:41 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 12 Feb 2016 03:23:28 +0000 (19:23 -0800)
w1_process() calls try_to_freeze(), but the thread doesn't mark itself
freezable through set_freezable(), so the try_to_freeze() call is useless.

Acked-by: Evgeniy Polyakov <zbr@ioremap.net>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/w1/w1.c

index c9a7ff67d395244a1b4cc4bd628979838a6b8d05..89a78475173810944411f1a61fa8236d56cb75e1 100644 (file)
@@ -1147,7 +1147,6 @@ int w1_process(void *data)
                        jremain = 1;
                }
 
-               try_to_freeze();
                __set_current_state(TASK_INTERRUPTIBLE);
 
                /* hold list_mutex until after interruptible to prevent loosing