diff options
author | Andy Shevchenko <andriy.shevchenko@linux.intel.com> | 2013-03-04 11:09:25 +0200 |
---|---|---|
committer | Vinod Koul <vinod.koul@intel.com> | 2013-04-15 09:51:16 +0530 |
commit | 77101ce578bb365e44c2944d6c338c68206e6e10 (patch) | |
tree | 2d8e089799af23ddaacd0fc401deb3d119a4b635 /usr | |
parent | 9a37f644046c2f5b7889be642487e6f9dd58c5d7 (diff) | |
download | linux-77101ce578bb365e44c2944d6c338c68206e6e10.tar.gz linux-77101ce578bb365e44c2944d6c338c68206e6e10.tar.bz2 linux-77101ce578bb365e44c2944d6c338c68206e6e10.zip |
dmatest: cancel thread immediately when asked for
If user have the timeout alike issues and wants to cancel the thread
immediately, the current call of wait_event_freezable_timeout is preventing to
this until timeout is expired. Thus, user will experience the unnecessary
delays.
Adding kthread_should_stop() check inside wait_event_freezable_timeout() solves
that.
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Acked-by: Viresh Kumar <viresh.kumar@linaro.org>
Signed-off-by: Vinod Koul <vinod.koul@intel.com>
Diffstat (limited to 'usr')
0 files changed, 0 insertions, 0 deletions