uwb: uwbd() is not freezable kthread

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>
This commit is contained in:
Jiri Kosina 2015-10-26 04:06:29 +01:00 committed by Greg Kroah-Hartman
parent d5ddcdf4d6
commit ced08b020e

View file

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