diff options
author | Alexander Usyskin <alexander.usyskin@intel.com> | 2016-09-25 06:25:31 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2016-09-27 06:33:47 -0400 |
commit | 1892fc2ee4c08d7ac17adb93f1341d9c3d7bdaf6 (patch) | |
tree | d4ab5c7663479092db1fa3308ded6f82cbe253cc /drivers/misc/mei/init.c | |
parent | 6eb1c9496b81680f2cd2e0eda06c531317e2e28d (diff) |
mei: stop the stall timer worker if not needed
The stall timer worker checks periodically if there is a stalled i/o
transaction. The issue with the current implementation is that the timer
is ticking also when there is no pending i/o transaction.
This patch provides a simple change that prevents rescheduling
of the delayed work when there is no pending i/o.
Cc: Andy Lutomirski <luto@kernel.org>
Signed-off-by: Alexander Usyskin <alexander.usyskin@intel.com>
Signed-off-by: Tomas Winkler <tomas.winkler@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/misc/mei/init.c')
-rw-r--r-- | drivers/misc/mei/init.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/misc/mei/init.c b/drivers/misc/mei/init.c index f7c8dfdb6a12..9a9c2484d107 100644 --- a/drivers/misc/mei/init.c +++ b/drivers/misc/mei/init.c | |||
@@ -94,7 +94,7 @@ void mei_cancel_work(struct mei_device *dev) | |||
94 | cancel_work_sync(&dev->reset_work); | 94 | cancel_work_sync(&dev->reset_work); |
95 | cancel_work_sync(&dev->bus_rescan_work); | 95 | cancel_work_sync(&dev->bus_rescan_work); |
96 | 96 | ||
97 | cancel_delayed_work(&dev->timer_work); | 97 | cancel_delayed_work_sync(&dev->timer_work); |
98 | } | 98 | } |
99 | EXPORT_SYMBOL_GPL(mei_cancel_work); | 99 | EXPORT_SYMBOL_GPL(mei_cancel_work); |
100 | 100 | ||