Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp2061430rdb; Thu, 7 Dec 2023 17:54:14 -0800 (PST) X-Google-Smtp-Source: AGHT+IF4EZlSBZfEIYGiCULH0FtwS1f1uaYLktVzB7lQ0gze7jE6/2/u1hIDwlCtZagDuDcqak06 X-Received: by 2002:a17:90a:6448:b0:286:6cc1:866f with SMTP id y8-20020a17090a644800b002866cc1866fmr2887394pjm.84.1702000454185; Thu, 07 Dec 2023 17:54:14 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702000454; cv=none; d=google.com; s=arc-20160816; b=oKY9PpgqQWla8uNb/Qoc45Uu3qFEWwUpqQvE/XPyboi9AIeCzAzjHawjWrPbD0uw3U BtCF/pP1XXLQSa0asSS3IXnoCV/HIPKP+kIUXbNmIJByyIbf2COJobTlyifJ9ezRKquO Zh5KQt0ij1G6PsRceM8s3W6eGIbRt0MtSXjkff86s6k1v9Z69xexPkBk9KIB3meSYlA4 a89/haX5u49Kk9RBzchkI8FFESgkGvfCS1z86QMZCD1CmsgR/3HGvYLAHjHZvdbI6Ohn VN6AQuu1Y4RG5NXzlqvW5kppEuSmPgQG3U+6sgeoPQxLGPr5AyxyfikmhBOhpoDJHN24 RwJQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:references :cc:to:from:subject:user-agent:mime-version:date:message-id; bh=Qp0+lUNCTdpRj5tjmt8cGZ60yI2AxIMv348ZFnAG954=; fh=hVzLXeIwPcPCmCjZQeRfdioqcw1LrJGG+t1qc6Vm0zc=; b=NYQCUYz+0BOOKZ6wdb0h3WoBIqXa+clFntqFgx8Au7ZGE2Bt0TvkC44lfkEV5XhK0H A824C0tJ6YzMMcOghz8Y0W85ikeYsvx9bFfdGHZPchCXq+RQtfEno/5YlrQ33NSybvG1 CEehXD7mb9FUH9Ei3LvmmW7sf+j29AwWfbpSrwfPoDUaRnokVB/b1FZXEnm1DQChKz2O zWqXGWYlg6BC+H1oM9pUt2TvWXi4RZ4J8QOvugvED/hLb+aLP6ju+eKN8WxkHH8xhnmA wxeNIQftCdx70IjWqC9F0yL/ihweyDcUAofhx4u395Mn+a5sVN457MYwSdf/wMJjBc9V 7CUA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Return-Path: Received: from lipwig.vger.email (lipwig.vger.email. [23.128.96.33]) by mx.google.com with ESMTPS id qa6-20020a17090b4fc600b0027d60ad5caesi780940pjb.110.2023.12.07.17.54.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 07 Dec 2023 17:54:14 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) client-ip=23.128.96.33; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by lipwig.vger.email (Postfix) with ESMTP id E4A77816F0D3; Thu, 7 Dec 2023 17:54:11 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at lipwig.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230225AbjLHBx7 (ORCPT + 99 others); Thu, 7 Dec 2023 20:53:59 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51262 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235653AbjLHBxz (ORCPT ); Thu, 7 Dec 2023 20:53:55 -0500 Received: from szxga02-in.huawei.com (szxga02-in.huawei.com [45.249.212.188]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C58761991; Thu, 7 Dec 2023 17:53:29 -0800 (PST) Received: from kwepemd100004.china.huawei.com (unknown [172.30.72.53]) by szxga02-in.huawei.com (SkyGuard) with ESMTP id 4SmYzx5nKwzWhvX; Fri, 8 Dec 2023 09:52:29 +0800 (CST) Received: from [10.67.121.175] (10.67.121.175) by kwepemd100004.china.huawei.com (7.221.188.31) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.2.1258.28; Fri, 8 Dec 2023 09:53:26 +0800 Message-ID: <5a00cc4f-1524-8a19-88c8-fe04e0211713@huawei.com> Date: Fri, 8 Dec 2023 09:53:25 +0800 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101 Thunderbird/91.9.1 Subject: Re: [PATCH] dmaengine: dmatest: fix timeout caused by kthread_stop From: Jie Hai To: CC: , References: <20230720114102.51053-1-haijie1@huawei.com> In-Reply-To: <20230720114102.51053-1-haijie1@huawei.com> Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 7bit X-Originating-IP: [10.67.121.175] X-ClientProxiedBy: dggems702-chm.china.huawei.com (10.3.19.179) To kwepemd100004.china.huawei.com (7.221.188.31) X-CFilter-Loop: Reflected X-Spam-Status: No, score=-3.0 required=5.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,NICE_REPLY_A,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lipwig.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (lipwig.vger.email [0.0.0.0]); Thu, 07 Dec 2023 17:54:12 -0800 (PST) Hi, Vkoul, Kindly ping... Thanks, 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 > kthread_stop(). > > Signed-off-by: Jie Hai > --- > 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 { > dma_async_issue_pending(chan); > > - wait_event_freezable_timeout(thread->done_wait, > + ret = wait_event_timeout(thread->done_wait, > done->done, > msecs_to_jiffies(params->timeout)); >