Received: by 2002:a05:6500:1b45:b0:1f5:f2ab:c469 with SMTP id cz5csp777315lqb; Wed, 17 Apr 2024 10:18:52 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWGIThGaMNOKpJtxrWHZRUxk4p5TroAdAcmXAEdMVtyWMgsPjgUTulCOilDa7llUE5Em2AzZz+IZCfiheIAgNBhKPJ3cjICF/NKPhVmSA== X-Google-Smtp-Source: AGHT+IHJ84WFbr2HDLrsgk9ILWH+8LTyYZcQ8ThyYcdCZyTABZ8DGBH73IZy99zSoRpHv3jh/Q+q X-Received: by 2002:a17:903:32c3:b0:1e4:17e4:3a1f with SMTP id i3-20020a17090332c300b001e417e43a1fmr134436plr.4.1713374331951; Wed, 17 Apr 2024 10:18:51 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713374331; cv=pass; d=google.com; s=arc-20160816; b=kfk+g31Pc0ksXtBSGvDR7Shv19QM2KtZcNELkTA8tDvijdCahdgc/0TPLZ3b4Qvjad ikbcmlW92+ceVhojKLTi9Wx+P8e6X6/OwmacZbkfC7H4nCzhbmKx2y33oeh3s/Pp7qri Y2WMIlWSAnfvqbMnE8Crn8gm2slZ1LMiIWQOcC6UIulD94MNattP8Q9/xe0rLfPjMCvC HSFIz8aQPuZjoJGHC6evyoMdjqb49vZakNKc0ZMr2XFfEhUugdHRd2vuHOCg1bocC0Xi 9dacznFOWR0GHG9lBGTr54p5O0WyxoWhHruhZ3AfH70QLon8DWROY233YAEGytGBKGYl z6MQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=+WOTvI7X4rBFrWvQBlHO28t++Bt1g1zae/m7bDO7xS4=; fh=iGhOLk+5UpPvigQ635wfcHc6QVwev7kizo620ZtH6eI=; b=n/FcKIgMemFxTG0IEugHxBnx8d0TruejWP2t7NfMWXp64AVVrwhW2Qe5mHtwG8Kgjg pIBqCVwofkaTYkHDcZ+ctN/1TBR9q5dIcnXI4xv+z5gK9gCAuTjcq5s2RSa1GsixMt6M f2PJIXHy39k2Qmz3eaxJnxW7cNhxOMuw26+EhreFABfYiQ8KIPpLPp33QuF8ZHTenWU5 2L2+f/zXV4MWBJWle/64nbDe7rGGONdu9blYFPCYfvYioOK2AvblE3+RhB+lNmcf28qj wmoondeZh9JwRdh8Np2fLpXWIRI2flaUY/RTzjoQS3IMbIz52eB2hbLFd/WNQJn0Jk6D kIMw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=HUQhmaPy; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-148984-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-148984-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id j1-20020a170902690100b001e7a28b54b6si4310310plk.608.2024.04.17.10.18.51 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 17 Apr 2024 10:18:51 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-148984-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=HUQhmaPy; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-148984-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-148984-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id D6D9028475D for ; Wed, 17 Apr 2024 17:18:50 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 43BEB171E78; Wed, 17 Apr 2024 17:18:41 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="HUQhmaPy" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 67BC916FF50; Wed, 17 Apr 2024 17:18:40 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713374320; cv=none; b=PB67u6eokkQpk8apBaV5P+r9zKu01AWsTepl/KsPnfvrSBwDk7TN0t+5/5EYuq13Sc9KSKs/YGRwz6LeiU/8JQVxW3LN1WYHtYB2d9qOdfEvIp0bSd4TpjSvmYVPPBfUEYoqqF6adGKq9WYVA1fLxtajb49riGAQ5UmjShWsu6Q= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713374320; c=relaxed/simple; bh=AVVC8QRcGY3UAjfNDcXN2mMvIcrHBnBOEBSfekr3s1M=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=DvQT8KbvZ9iKfPJXNMBp85Nhp3WlgH7F66bki6P5r+3PXMmrPnLc4DCzFI9sEphYmYKdtzMBdchxbb80pauR3NOFD+FQeIGQMmlEmPt/v3OVa33MeSCRvrn3qsAX95spKYKsR7QhJUw1hs3ly/KA0//r2CxgsDIQJSH1Z98T/PE= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=HUQhmaPy; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id A3B66C072AA; Wed, 17 Apr 2024 17:18:39 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1713374320; bh=AVVC8QRcGY3UAjfNDcXN2mMvIcrHBnBOEBSfekr3s1M=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=HUQhmaPyJruOFGHbt5IlTLaWzjdXdb0nNly6FTzlwTSyimUJgvsNa6OWxJ5QfVpJg j1cI3pk/fNrWN4AtPrqKNtkbIlYbfCPQapEEn6Wml0s10IRVQ1JurRC00/M/1CbvQX NS+pYHEtYzcGwC67krDzlvav422BPoUTq8MCQg0bihViI8wJolSa5qonsOWhkrZ1gb xpYEhgnlXjNwis/L3MBpm0HZ6gkl/2HBFUHZ+rVbygg0SOu0kdJRPjMe0BTpeJnSI7 1WQfcoMLJejVy7P4JnWVRYlyUcRpdRT6Qp+F0I0MxTi/wVm7g98FHu+t0ipEK2FwE+ hlW7DLj/jpjjw== Date: Wed, 17 Apr 2024 22:48:36 +0530 From: Vinod Koul To: Jie Hai Cc: dmaengine@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] dmaengine: dmatest: fix timeout caused by kthread_stop Message-ID: References: <20230720114102.51053-1-haijie1@huawei.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230720114102.51053-1-haijie1@huawei.com> On 20-07-23, 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 Have you see this failure? Any log of that.. > 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)); > > -- > 2.33.0 -- ~Vinod