mei: stop the stall timer worker if not needed
authorAlexander Usyskin <alexander.usyskin@intel.com>
Sun, 25 Sep 2016 10:25:31 +0000 (13:25 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 27 Sep 2016 10:33:47 +0000 (12:33 +0200)
commit1892fc2ee4c08d7ac17adb93f1341d9c3d7bdaf6
treed4ab5c7663479092db1fa3308ded6f82cbe253cc
parent6eb1c9496b81680f2cd2e0eda06c531317e2e28d
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>
drivers/misc/mei/amthif.c
drivers/misc/mei/client.c
drivers/misc/mei/hbm.c
drivers/misc/mei/init.c
drivers/misc/mei/interrupt.c
drivers/misc/mei/mei_dev.h
drivers/misc/mei/pci-me.c