From: Ulrich Obergfell Date: Fri, 6 Nov 2015 02:44:39 +0000 (-0800) Subject: watchdog: do not unpark threads in watchdog_park_threads() on error X-Git-Tag: Ubuntu-snapdragon-4.4.0-1050.54~7181^2~142 X-Git-Url: https://git.proxmox.com/?a=commitdiff_plain;h=ee7fed540563b27e1028bec0b509921496c91bf9;hp=ee7fed540563b27e1028bec0b509921496c91bf9;p=mirror_ubuntu-artful-kernel.git watchdog: do not unpark threads in watchdog_park_threads() on error If kthread_park() returns an error, watchdog_park_threads() should not blindly 'roll back' the already parked threads to the unparked state. Instead leave it up to the callers to handle such errors appropriately in their context. For example, it is redundant to unpark the threads if the lockup detectors will soon be disabled by the callers anyway. Signed-off-by: Ulrich Obergfell Reviewed-by: Aaron Tomlin Acked-by: Don Zickus Cc: Ulrich Obergfell Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds ---