Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp3964131rdb; Mon, 11 Dec 2023 05:22:32 -0800 (PST) X-Google-Smtp-Source: AGHT+IFmrnJvmsQ8/pgspDchJQmk7WD4neUiZRzgFPUUEweHP7LVb8o/DLTq2//H5aR4un8TWGCG X-Received: by 2002:aa7:8684:0:b0:6ce:725f:7da9 with SMTP id d4-20020aa78684000000b006ce725f7da9mr4357856pfo.59.1702300952296; Mon, 11 Dec 2023 05:22:32 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702300952; cv=none; d=google.com; s=arc-20160816; b=gEr/LwcEqoiVM6d8J2ugcoKFqeSclv1bGwz39Iz2HJPNDLEXWDzy9B9Qaq1AsZjby9 D0/KxUaXNq+A6X+4Dd2g1E0dnfFHvXkWTmjefP7ZNdext0xLfR5M3s6S066hxtzDTVib 4nKLjv4VDiAxAgkk543iDP4INroEuT28sG5ODri0wHaj3OVQPL9q4nOEdRRi5EpuPn6r IRweujUPMoz0gZy4O6w9I8Taui69p7VvzkSa6mZ2z+ADgdnzjA4CannxoD8ePsOXeqJ4 G5SRRRzIUDKjEWulLDb+LGX8a2gqYfw69lroE0rhalpCgUj0jraV8HZeIsFBMEIAwRVU FCEA== 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=mk0+fwcszfMgIgSJx2u+pNEThzto4aoK1MUIhgsbbC4=; fh=xKQdGzpNK37gT8VvvJ+iiVnzXew8dvd0N3d3kF5aRIU=; b=TI68PhFxxWxVB6W9UrONmHnLPjr0LbRLXCCsd5UDZTSGKHz/GU2oh8ctmmF6rP6xKA yIv42CIZKr9vfXE3KcMnSEmZw6JKTONIiIYgyg2AUxuyeohuRkTmuQfrIgSMe7Sey451 iKUGsVu5TE1lTILifjxOgZBtwKSQ6y0dcOPvuuYPsqzd9pisG6JB+1/7Z+yWnYiRiSO5 Po7HeE4cFVPgIf66MgeFwAIFd/lc4qM3kM0CBAIEfkqqIigQFhMB2Lc73QIkQOCZo/3G 7Zb9+Qv9LEymfOt524AticYQ1pvTv9loeSa3ozfZ6Tz3Orrf/BrewiRrjlbZsE+b0dnv BBzw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=o8V92woZ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 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 lipwig.vger.email (lipwig.vger.email. [2620:137:e000::3:3]) by mx.google.com with ESMTPS id a25-20020a62e219000000b006ce6d0550c3si5835324pfi.395.2023.12.11.05.22.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 11 Dec 2023 05:22:32 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) client-ip=2620:137:e000::3:3; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=o8V92woZ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 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 out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by lipwig.vger.email (Postfix) with ESMTP id 1FA948084610; Mon, 11 Dec 2023 05:22:30 -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 S1343615AbjLKNWQ (ORCPT + 99 others); Mon, 11 Dec 2023 08:22:16 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58310 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234350AbjLKNWQ (ORCPT ); Mon, 11 Dec 2023 08:22:16 -0500 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E08B0C3 for ; Mon, 11 Dec 2023 05:22:22 -0800 (PST) Received: by smtp.kernel.org (Postfix) with ESMTPSA id F0DC5C433C8; Mon, 11 Dec 2023 13:22:21 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1702300942; bh=kMg/GXuAw0NwjiwcG9lf2WoRc4TxLCeq2bQHpKvPkLY=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=o8V92woZX3BPHpaqYPqwZL7XLYYtjzRIj3wFUbj9x0jxILnQvZpYgWvKOYjbcpMI4 Tniti74WD7uNwuGe1iALxBuof8tOulSwKPQkYGzaKHkA/0S6TffsrQiTlPxnG8h/BX /25UQi/TwADNf58AaJBQHI2bbOtG6TbwWJnpBmrsLL9jiufF0qyiTfUffqII5FlPdh VL8Ixj3f7d6gU0FYNeinZNPXWETtzbGoKgvwnSVcnFGGjBFgpZfJ3NmSScwf1N1KOx adT+dKv/MFQ1BAfwPI+EiOBtJ+V40Va0htKkSDzWVroZbclUoYuCTLCBwu4Br7sccQ 55EskjMXlUcAQ== Date: Mon, 11 Dec 2023 15:22:17 +0200 From: Leon Romanovsky To: Daniel Vacek Cc: Jason Gunthorpe , linux-rdma@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] IB/ipoib: No need to hold the lock while printing the warning Message-ID: <20231211132217.GF4870@unreal> References: <20231211131051.1500834-1-neelx@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20231211131051.1500834-1-neelx@redhat.com> X-Spam-Status: No, score=-1.2 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,MAILING_LIST_MULTI, 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]); Mon, 11 Dec 2023 05:22:30 -0800 (PST) On Mon, Dec 11, 2023 at 02:10:50PM +0100, Daniel Vacek wrote: > Signed-off-by: Daniel Vacek Please fill some text in commit message. Thanks > --- > drivers/infiniband/ulp/ipoib/ipoib_multicast.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git a/drivers/infiniband/ulp/ipoib/ipoib_multicast.c b/drivers/infiniband/ulp/ipoib/ipoib_multicast.c > index 5b3154503bf4..ae2c05806dcc 100644 > --- a/drivers/infiniband/ulp/ipoib/ipoib_multicast.c > +++ b/drivers/infiniband/ulp/ipoib/ipoib_multicast.c > @@ -536,17 +536,17 @@ static int ipoib_mcast_join(struct net_device *dev, struct ipoib_mcast *mcast) > multicast = ib_sa_join_multicast(&ipoib_sa_client, priv->ca, priv->port, > &rec, comp_mask, GFP_KERNEL, > ipoib_mcast_join_complete, mcast); > - spin_lock_irq(&priv->lock); > if (IS_ERR(multicast)) { > ret = PTR_ERR(multicast); > ipoib_warn(priv, "ib_sa_join_multicast failed, status %d\n", ret); > + spin_lock_irq(&priv->lock); > /* Requeue this join task with a backoff delay */ > __ipoib_mcast_schedule_join_thread(priv, mcast, 1); > clear_bit(IPOIB_MCAST_FLAG_BUSY, &mcast->flags); > spin_unlock_irq(&priv->lock); > complete(&mcast->done); > - spin_lock_irq(&priv->lock); > } > + spin_lock_irq(&priv->lock); > return 0; > } > > -- > 2.43.0 >