uwb: uwbd() is not freezable kthread
authorJiri Kosina <jkosina@suse.cz>
Mon, 26 Oct 2015 03:06:29 +0000 (04:06 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 1 Dec 2015 22:26:33 +0000 (14:26 -0800)
uwbd() calls try_to_freeze(), but the thread doesn't mark itself freezable
through set_freezable(), so the try_to_freeze() call is useless.

Signed-off-by: Jiri Kosina <jkosina@suse.cz>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/uwb/uwbd.c

index bdcb13cc1d541312cd62b2320964e3fe22fb6635..01c20a260a8b3f9d9a8ccc315d453f810eb3104c 100644 (file)
@@ -279,7 +279,6 @@ static int uwbd(void *param)
                        HZ);
                if (should_stop)
                        break;
-               try_to_freeze();
 
                spin_lock_irqsave(&rc->uwbd.event_list_lock, flags);
                if (!list_empty(&rc->uwbd.event_list)) {