Received: by 2002:a05:6a10:6d10:0:0:0:0 with SMTP id gq16csp257411pxb; Wed, 20 Apr 2022 21:57:06 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwmFDusGR5C7vpYl946jNkzUVUWEn7EBk+jlFHSx0A6GADJVHAMJ0DU+noMH5IVVCk+1dXU X-Received: by 2002:a17:902:d582:b0:15a:3724:5ed1 with SMTP id k2-20020a170902d58200b0015a37245ed1mr4769285plh.17.1650517025858; Wed, 20 Apr 2022 21:57:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1650517025; cv=none; d=google.com; s=arc-20160816; b=r9i4VpqYmu00jelNo3LbBpOvAg8hu3I/xM/p1eLajDTo14nqA7+jwP+qVU/VsPBmjk Eh9AkpBYWol8RxqA79ftcN4WzMwkX8oIOPamyF/rDUiXM/f/v7FHtaEeucBAgIonL+2b kL9mqsZbOtZKG2n00jKqEASoHf4GITuRq7cDz7xgaiAiFk3I3hX146qE80pCiNRwRSJP SnJQDKDzM1V4rlRyARouDqZJ/HpX8/E5s4bMNhpsgKjwxQ+DXIdeEO/yzUYcyojtmC6y QNTT0zAFCN4kwZsbJgk5c0kN3qU0yrnZAhCsosgbumeCTCl5CaiAzgbpYBAj1g8IS7Za dslQ== 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=rpfapKAogH2x5o54tuD8F5Gd2ZOmaQ8uA4rqyrA5SRE=; b=cjvK18KzIqQA+9vHaaQT8UM/LNzhCbz+Ixc9dm/jnUduaZXb4hMhHg42Zn89zT0Iq2 KBlqO5kmAw8dV2RYuYHhQyoDRuiWHoFXNHm5SDhdgtaNKHIyLFDlaloCqmkIVcrJerm3 5FkLcfDKNKDsFYHZbKmii/MabsADKgQAmSWmxp2cIwO7ipyaizal2alXa1boBN+aoDHy NrWJ4d2trhRdIrNJ2UCyGtmN6u1Lme0GPhxBU5YlOLVqzNbvSWtL9e7dIWVxTi1mD/1n vhjnsTbC8JVjB6voX7CX1FEugCjHRXybNjJzduQ1zy9ugo7eo3dCBRR4aeQ8S/MrAIyt W/WQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=NuN7WrdO; 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=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id b65-20020a636744000000b003816043f160si4367392pgc.853.2022.04.20.21.56.50; Wed, 20 Apr 2022 21:57:05 -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=@kernel.org header.s=k20201202 header.b=NuN7WrdO; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1351775AbiDTKdA (ORCPT + 99 others); Wed, 20 Apr 2022 06:33:00 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60198 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238282AbiDTKc6 (ORCPT ); Wed, 20 Apr 2022 06:32:58 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0FA5C3F885; Wed, 20 Apr 2022 03:30:12 -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 B8F86B81E8D; Wed, 20 Apr 2022 10:30:10 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id CE298C385A0; Wed, 20 Apr 2022 10:30:08 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1650450609; bh=kEDDxF17hrgH58OVXjuIFepbkYbLgvtx7CEHRjDCwCY=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=NuN7WrdOgPrnpmS28LNzTXFdP0/6JFpbRoUr8/TS88N1o8Cdkyx4z17A2P6Y6NyAN 5mZ6/kGu36j0rAd+C7uf3DXMWLq6LYjta+6Mz8wX7AhgC+8qwq/yOgI36IFJdvOxGK fgiox1MxAGqv2hcK4BuHaeXsS05hug5qZJm/sCD+ZQr2B/4vyDQRTgDEw89ckih+sX asjureABj9XGif273HwHcxBenmh2LvafbGcBD6yf2Gf5gBmbSE1Ttb5b7UmC2996YX aIXXfFeH4Bi6M9/3FIUVsPQb7OUe2glfii1bl/dbBfg7X1YkdyCt/aI0O+J6OpFGON ksxKZ1CFX4e9g== Date: Wed, 20 Apr 2022 16:00:04 +0530 From: Vinod Koul To: Yunbo Yu Cc: logang@deltatee.com, dmaengine@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] dmaengine: plx_dma: Move spin_lock_bh() to spin_lock() Message-ID: References: <20220418142021.1241558-1-yuyunbo519@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220418142021.1241558-1-yuyunbo519@gmail.com> X-Spam-Status: No, score=-7.7 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS autolearn=ham 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:20, Yunbo Yu wrote: > It is unnecessary to call spin_lock_bh() for you are already in a tasklet. call spin_lock_bh() if you are already in a .. With that fixed, applied. Thanks > > Signed-off-by: Yunbo Yu > --- > 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) > -- > 2.25.1 -- ~Vinod