Re: [PATCH] dmaengine: dmatest: fix timeout caused by kthread_stop

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]


Hi, Vkoul,

Kindly ping...

Jie Hai
On 2023/7/20 19:41, Jie Hai wrote:
The change introduced by commit a7c01fa93aeb ("signal: break
out of wait loops on kthread_stop()") causes dmatest aborts
any ongoing tests and possible failure on the tests. This patch
use wait_event_timeout instead of wait_event_freezable_timeout
to avoid interrupting ongoing tests by signal brought by

Signed-off-by: Jie Hai <haijie1@xxxxxxxxxx>
  drivers/dma/dmatest.c | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/dma/dmatest.c b/drivers/dma/dmatest.c
index ffe621695e47..c06b8b16645a 100644
--- a/drivers/dma/dmatest.c
+++ b/drivers/dma/dmatest.c
@@ -827,7 +827,7 @@ static int dmatest_func(void *data)
  		} else {
- wait_event_freezable_timeout(thread->done_wait,
+			ret = wait_event_timeout(thread->done_wait,

[Index of Archives]     [Linux Kernel]     [Linux ARM (vger)]     [Linux ARM MSM]     [Linux Omap]     [Linux Arm]     [Linux Tegra]     [Fedora ARM]     [Linux for Samsung SOC]     [eCos]     [Linux PCI]     [Linux Fastboot]     [Gcc Help]     [Git]     [DCCP]     [IETF Announce]     [Security]     [Linux MIPS]     [Yosemite Campsites]

  Powered by Linux