Received: by 2002:a05:6a10:6d10:0:0:0:0 with SMTP id gq16csp763704pxb; Fri, 22 Apr 2022 10:38:06 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwpReoLu3RIUvUJwPfyoAHMd7bUrsPGFImuxdn3pa97uUl9Llqwd1ZrRRsps9zBXgSqU79G X-Received: by 2002:a17:90a:2a84:b0:1d8:6884:9d8 with SMTP id j4-20020a17090a2a8400b001d8688409d8mr3589090pjd.121.1650649085959; Fri, 22 Apr 2022 10:38:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1650649085; cv=none; d=google.com; s=arc-20160816; b=OIkQY9BTU8I5txa/9x08Ku+6xaZKOvWFmLH2mwzKlsCU3vm/ZX7Un2Ex8EQF9uHWig 6rGF3+sN/8BVO85DuvMFT8bE56rN7cxWS7d/rjkhFKASR5WCA/+kzw+GPjHeSnM35/AJ pVIqtdoWCdRtaGKCvqppLsE+seOxe/LL/rVHIK0KhQagsxztFBXtZkiy54OcEc51IMVk +6rpUhpWGY74kUyfuXz2xngkFKsbFlIHp1JiFsC5AnNRoe2guA8YZGTK4k7Nge9mGJiU HHq2F9SePJfTGpIKP9MlY5z51DA+KDUhzACbIHPBsku0RtcQ5eHxNvmkcVQzvzDqcZfY UZcw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=FqLbsA417jtCQyWbV2cKGJOuF+SxONstDu8YOV7T5Io=; b=mmUPJDORSLkD73RLbNv3ClsyBOFvTIcLGBxP7rp3KAJSo22mjH7JFyom+CMLmZ/9fO 83yNj+pzEhJw8KiczIcABiyFT+YhnDc3/iVRmg25LK03+s65qssYMaAIhpAcSbkFDYf/ XmryZ8sg7f6lU95LFvhjii9NZnFzLqonEjEc4GjDwYQy99wl2FHF1CEwRX6l50b3JbiA GjsMMigjlg3DmTI/xaS/3W2oIE7k1mRM4LHS1Fxj3PZ0eQVl8Ad3+CaAH9tS1VCzjE0f VLOrFVw8/X3Bp9cUNeZ3Ib46KEcMGSOsGGPpsJEhHZsOCRhWfYWAmtC4Tg12WwreSzQv awUA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=QG05t+vL; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id w8-20020a634748000000b0039cf6c5573csi9161113pgk.844.2022.04.22.10.38.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 22 Apr 2022 10:38:05 -0700 (PDT) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=QG05t+vL; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 7CE17E0AC5; Fri, 22 Apr 2022 10:27:48 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1351860AbiDTKdn (ORCPT + 99 others); Wed, 20 Apr 2022 06:33:43 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60576 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1351834AbiDTKdm (ORCPT ); Wed, 20 Apr 2022 06:33:42 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6FA503F885; Wed, 20 Apr 2022 03:30:56 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 2DAAAB81E8D; Wed, 20 Apr 2022 10:30:55 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 6B6D3C385A1; Wed, 20 Apr 2022 10:30:53 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1650450654; bh=3hsA9FdNCm/ir4JpBGaglXUVYAiq1AFFt+T3cgSWS6I=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=QG05t+vL/kAmVNYRYtQXVGzFLv/YahEg3VtFGl95mjORL/WWP/V2G5ce+1T8mEc9+ l1hsqicRaXaLE17+qhRkdklPIcsBVNcTYU1Wn+nF6zUuLVxr7PWSPIxKesUK1X5mbW S5l2ChrHPND4PFfQFuoZYpRroeHXvr8LmxwYy3xzFuR7rMJ3PkYARIXAIKSCi4kVVN msdnCKjaczV2Y0okUSNL3m33S/YkYk1QWG2dbPShxngPbV13kc2u7j5dkS/Ke4xQyW LgKndX/LXCRGj4Fil2Zuki5Z51+hm4tnuwB//s+J0y572GNPzq+wSTqIhahlnKVf5a OF6VH8Q5OMCIQ== Date: Wed, 20 Apr 2022 16:00:50 +0530 From: Vinod Koul To: Yunbo Yu Cc: dmaengine@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] dmaengine: mv_xor_v2: move spin_lock_bh to spin_lock Message-ID: References: <20220418141940.1241482-1-yuyunbo519@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220418141940.1241482-1-yuyunbo519@gmail.com> X-Spam-Status: No, score=-2.9 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,MAILING_LIST_MULTI, RDNS_NONE,SPF_HELO_NONE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 18-04-22, 22:19, Yunbo Yu wrote: > It is unnecessary to call spin_lock_bh() for that you are already in a if you are > taselet. tasklet > > Signed-off-by: Yunbo Yu > --- > drivers/dma/mv_xor_v2.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git a/drivers/dma/mv_xor_v2.c b/drivers/dma/mv_xor_v2.c > index 9c8b4084ba2f..f10b29034da1 100644 > --- a/drivers/dma/mv_xor_v2.c > +++ b/drivers/dma/mv_xor_v2.c > @@ -591,14 +591,14 @@ static void mv_xor_v2_tasklet(struct tasklet_struct *t) > dma_run_dependencies(&next_pending_sw_desc->async_tx); > > /* Lock the channel */ > - spin_lock_bh(&xor_dev->lock); > + spin_lock(&xor_dev->lock); > > /* add the SW descriptor to the free descriptors list */ > list_add(&next_pending_sw_desc->free_list, > &xor_dev->free_sw_desc); > > /* Release the channel */ > - spin_unlock_bh(&xor_dev->lock); > + spin_unlock(&xor_dev->lock); > > /* increment the next descriptor */ > pending_ptr++; > -- > 2.25.1 -- ~Vinod