From: Harshit Mogalapalli <harshit.m.mogalapalli@oracle.com>
To: Marcin Wojtas <marcin.s.wojtas@gmail.com>,
Andrew Lunn <andrew+netdev@lunn.ch>,
"David S. Miller" <davem@davemloft.net>,
Eric Dumazet <edumazet@google.com>,
Jakub Kicinski <kuba@kernel.org>, Paolo Abeni <pabeni@redhat.com>,
Francois Romieu <romieu@fr.zoreil.com>,
Kuniyuki Iwashima <kuniyu@amazon.com>,
netdev@vger.kernel.org, linux-kernel@vger.kernel.org
Cc: dan.carpenter@linaro.org, kernel-janitors@vger.kernel.org,
error27@gmail.com
Subject: Re: [PATCH] net: mvneta: fix locking in mvneta_cpu_online()
Date: Tue, 21 Jan 2025 06:23:16 +0530 [thread overview]
Message-ID: <8abc7eed-028e-4fe3-a319-e0936c6bf9e7@oracle.com> (raw)
In-Reply-To: <20250121005002.3938236-1-harshit.m.mogalapalli@oracle.com>
Hi,
On 21/01/25 06:20, Harshit Mogalapalli wrote:
> When port is stopped, unlock before returning
>
Missed adding a period at the end of sentence. Should I send a V2 ?
Thanks,
Harshit
> Fixes: 413f0271f396 ("net: protect NAPI enablement with netdev_lock()")
> Signed-off-by: Harshit Mogalapalli <harshit.m.mogalapalli@oracle.com>
> ---
> This is based on static analysis, only compile tested
> ---
> drivers/net/ethernet/marvell/mvneta.c | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/drivers/net/ethernet/marvell/mvneta.c b/drivers/net/ethernet/marvell/mvneta.c
> index 82f4333fb426..4fe121b9f94b 100644
> --- a/drivers/net/ethernet/marvell/mvneta.c
> +++ b/drivers/net/ethernet/marvell/mvneta.c
> @@ -4432,6 +4432,7 @@ static int mvneta_cpu_online(unsigned int cpu, struct hlist_node *node)
> */
> if (pp->is_stopped) {
> spin_unlock(&pp->lock);
> + netdev_unlock(port->napi.dev);
> return 0;
> }
> netif_tx_stop_all_queues(pp->dev);
next prev parent reply other threads:[~2025-01-21 0:53 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-01-21 0:50 [PATCH] net: mvneta: fix locking in mvneta_cpu_online() Harshit Mogalapalli
2025-01-21 0:53 ` Harshit Mogalapalli [this message]
2025-01-21 1:04 ` Jakub Kicinski
2025-01-21 9:53 ` Simon Horman
2025-01-23 15:10 ` patchwork-bot+netdevbpf
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=8abc7eed-028e-4fe3-a319-e0936c6bf9e7@oracle.com \
--to=harshit.m.mogalapalli@oracle.com \
--cc=andrew+netdev@lunn.ch \
--cc=dan.carpenter@linaro.org \
--cc=davem@davemloft.net \
--cc=edumazet@google.com \
--cc=error27@gmail.com \
--cc=kernel-janitors@vger.kernel.org \
--cc=kuba@kernel.org \
--cc=kuniyu@amazon.com \
--cc=linux-kernel@vger.kernel.org \
--cc=marcin.s.wojtas@gmail.com \
--cc=netdev@vger.kernel.org \
--cc=pabeni@redhat.com \
--cc=romieu@fr.zoreil.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).