[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <Z4bxVg2c1tlXd5CV@LQ3V64L9R2>
Date: Tue, 14 Jan 2025 15:20:54 -0800
From: Joe Damato <jdamato@...tly.com>
To: Jakub Kicinski <kuba@...nel.org>
Cc: davem@...emloft.net, netdev@...r.kernel.org, edumazet@...gle.com,
pabeni@...hat.com, andrew+netdev@...n.ch, horms@...nel.org
Subject: Re: [PATCH net-next 10/11] net: protect NAPI config fields with
netdev_lock()
On Mon, Jan 13, 2025 at 07:51:16PM -0800, Jakub Kicinski wrote:
> Protect the following members of netdev and napi by netdev_lock:
> - defer_hard_irqs,
> - gro_flush_timeout,
> - irq_suspend_timeout.
>
> The first two are written via sysfs (which this patch switches
> to new lock), and netdev genl which holds both netdev and rtnl locks.
>
> irq_suspend_timeout is only written by netdev genl.
>
> Signed-off-by: Jakub Kicinski <kuba@...nel.org>
> ---
> include/linux/netdevice.h | 7 ++++---
> net/core/net-sysfs.c | 5 +++--
> 2 files changed, 7 insertions(+), 5 deletions(-)
Reviewed-by: Joe Damato <jdamato@...tly.com>
Powered by blists - more mailing lists