Received: by 2002:a05:6a10:6d10:0:0:0:0 with SMTP id gq16csp3718282pxb; Tue, 19 Apr 2022 08:30:21 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx8UZY4o/FoAZL9IlY/8+rGCfZC9x+pXfQjNsD22NCe6jJ1kKbEIOjlCntdn60hNmoCZtbw X-Received: by 2002:a17:906:846b:b0:6ef:af54:f2cc with SMTP id hx11-20020a170906846b00b006efaf54f2ccmr9058606ejc.662.1650382221225; Tue, 19 Apr 2022 08:30:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1650382221; cv=none; d=google.com; s=arc-20160816; b=xB2IiYlwdVm64fvhlofKR/DHSEWAF2etnXRceZgoktqOrjt9/PvLoFAzIkjYRhzVi8 hiFVs5IA6z5OObV7F60Qkfe0SPNeodcX7eYdtYHL0p1wWnuoIta3srJ+WaaFgUO275dx C8slzhITZmISeRki2WCidqqRVZuvu3HEKjj3lzTYp8QAPjw0UNVg/irP3crJZD9kezye 8CmKl3boZDgLTCaAzKjLbnEWEJWVnGBA62Njv8v038hGyrVRc3vvrZDU0VVSnw/4KOdH fQUMIUz80jUQQxjN8VbN7iDpJ3/TWVLOUKaVw9i4325MCBGdvW4pYnYIjkU9EX2I8deX lHXQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:subject:content-transfer-encoding:in-reply-to :from:references:cc:to:content-language:user-agent:mime-version:date :message-id:dkim-signature; bh=vC0Ih9le+ufoyxFprP99+GQ0JyIb9kJyMO1mXKJWmYQ=; b=Jmyf8dLAjza6mHU6aW8SnL5BkuHjeRvCQhZ/HuuSmdORlxkXblngjwEvJtJvbjTnLk 78WIx22tx1RX9VivvPpuGBV+V8HtCYM26K5JvkpmmLOAa/+nORlbXCpKX+LEDV2+vwzr BWl3hA1GUj+8q2p0rsLE7uY2fx00DRVkKephSWpYuz6/7HPEH5b+9hEgPUbCudyrI0Wy F31m0RK4uCcCUqYj5YKj2+pis4AZ19H/QBNKY00K4Fhw9T/HsC5sisenyLuJYeAfH/z+ dQt2DVXNkSPuz/QY8Btnp8oq5120x8Gv/TPOH8xfBYiKIEQyDetjk8G5oMPLfNoFFuiM fhzA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@deltatee.com header.s=20200525 header.b=O7SWBeNJ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=deltatee.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id iy24-20020a170907819800b006dfbffe77b9si7857700ejc.23.2022.04.19.08.29.55; Tue, 19 Apr 2022 08:30:21 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@deltatee.com header.s=20200525 header.b=O7SWBeNJ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=deltatee.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236452AbiDRP7c (ORCPT + 99 others); Mon, 18 Apr 2022 11:59:32 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54442 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1346085AbiDRP70 (ORCPT ); Mon, 18 Apr 2022 11:59:26 -0400 Received: from ale.deltatee.com (ale.deltatee.com [204.191.154.188]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 267242E7; Mon, 18 Apr 2022 08:54:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=deltatee.com; s=20200525; h=Subject:In-Reply-To:From:References:Cc:To: MIME-Version:Date:Message-ID:content-disposition; bh=vC0Ih9le+ufoyxFprP99+GQ0JyIb9kJyMO1mXKJWmYQ=; b=O7SWBeNJrTuZVjyru9nyZRnBOe 22lwd7QeTzfHJA2QCmrdsDoma3MD9W/MoeQSd+uvgy6Xr484pvDd0tl3ualGpFtux1LAjYD76p02m 3ntUCfY3URytlDVrXSIKtpKrt9YpYfsAStJh/3L3BJrhZbg7W+hlDyEoHTIfqxPqny6qACytsYxgs daN82zJzOqLoeOvrWU28bzXA3Lk0FlwvhCkbi0UZ0Gf2A6Fbn4b5ZlQ5n2hZu3uLz7TZl/3SZJIix QwKgzC8H1UtmZnhxB+0zciw2LmBLKhbqt7IHcoEWIHDzHusSTRzzVSjgGjYAyPHSc0/pPOvTQ7+ot H9y5yYEA==; Received: from guinness.priv.deltatee.com ([172.16.1.162]) by ale.deltatee.com with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.94.2) (envelope-from ) id 1ngThm-00Aldv-Sx; Mon, 18 Apr 2022 09:54:25 -0600 Message-ID: Date: Mon, 18 Apr 2022 09:54:22 -0600 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.7.0 Content-Language: en-CA To: Yunbo Yu , vkoul@kernel.org Cc: dmaengine@vger.kernel.org, linux-kernel@vger.kernel.org References: <20220418142021.1241558-1-yuyunbo519@gmail.com> From: Logan Gunthorpe In-Reply-To: <20220418142021.1241558-1-yuyunbo519@gmail.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-SA-Exim-Connect-IP: 172.16.1.162 X-SA-Exim-Rcpt-To: yuyunbo519@gmail.com, vkoul@kernel.org, dmaengine@vger.kernel.org, linux-kernel@vger.kernel.org X-SA-Exim-Mail-From: logang@deltatee.com X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net X-Spam-Level: X-Spam-Status: No, score=-5.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,SPF_HELO_PASS, SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 Subject: Re: [PATCH] dmaengine: plx_dma: Move spin_lock_bh() to spin_lock() X-SA-Exim-Version: 4.2.1 (built Sat, 13 Feb 2021 17:57:42 +0000) X-SA-Exim-Scanned: Yes (on ale.deltatee.com) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2022-04-18 08:20, Yunbo Yu wrote: > It is unnecessary to call spin_lock_bh() for you are already in a tasklet. > > Signed-off-by: Yunbo Yu Ah, thanks! Reviewed-by: Logan Gunthorpe > --- > drivers/dma/plx_dma.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git a/drivers/dma/plx_dma.c b/drivers/dma/plx_dma.c > index 1ffcb5ca9788..12725fa1655f 100644 > --- a/drivers/dma/plx_dma.c > +++ b/drivers/dma/plx_dma.c > @@ -137,7 +137,7 @@ static void plx_dma_process_desc(struct plx_dma_dev *plxdev) > struct plx_dma_desc *desc; > u32 flags; > > - spin_lock_bh(&plxdev->ring_lock); > + spin_lock(&plxdev->ring_lock); > > while (plxdev->tail != plxdev->head) { > desc = plx_dma_get_desc(plxdev, plxdev->tail); > @@ -165,7 +165,7 @@ static void plx_dma_process_desc(struct plx_dma_dev *plxdev) > plxdev->tail++; > } > > - spin_unlock_bh(&plxdev->ring_lock); > + spin_unlock(&plxdev->ring_lock); > } > > static void plx_dma_abort_desc(struct plx_dma_dev *plxdev)