From: Andy Shevchenko Date: Mon, 4 Mar 2013 09:09:25 +0000 (+0200) Subject: dmatest: cancel thread immediately when asked for X-Git-Tag: v3.10-rc1~41^2~42 X-Git-Url: https://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=77101ce578bb365e44c2944d6c338c68206e6e10;p=pandora-kernel.git 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 Acked-by: Viresh Kumar Signed-off-by: Vinod Koul --- Reading git-diff-tree failed