[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20250611184345.3b403ad0@kernel.org>
Date: Wed, 11 Jun 2025 18:43:45 -0700
From: Jakub Kicinski <kuba@...nel.org>
To: Stanislav Fomichev <stfomichev@...il.com>
Cc: netdev@...r.kernel.org, davem@...emloft.net, edumazet@...gle.com,
pabeni@...hat.com, skalluru@...vell.com, manishc@...vell.com,
andrew+netdev@...n.ch, michael.chan@...adcom.com,
pavan.chebbi@...adcom.com, ajit.khaparde@...adcom.com,
sriharsha.basavapatna@...adcom.com, somnath.kotur@...adcom.com,
anthony.l.nguyen@...el.com, przemyslaw.kitszel@...el.com,
tariqt@...dia.com, saeedm@...dia.com, louis.peens@...igine.com,
shshaikh@...vell.com, GR-Linux-NIC-Dev@...vell.com, ecree.xilinx@...il.com,
horms@...nel.org, dsahern@...nel.org, shuah@...nel.org,
ruanjinjie@...wei.com, mheib@...hat.com, linux-kernel@...r.kernel.org,
intel-wired-lan@...ts.osuosl.org, linux-rdma@...r.kernel.org,
oss-drivers@...igine.com, linux-net-drivers@....com,
linux-kselftest@...r.kernel.org, leon@...nel.org, Cosmin Ratiu
<cratiu@...dia.com>
Subject: Re: [PATCH net-next v3 1/4] udp_tunnel: remove rtnl_lock dependency
On Tue, 10 Jun 2025 10:15:19 -0700 Stanislav Fomichev wrote:
> Drivers that are using ops lock and don't depend on RTNL lock
> still need to manage it because udp_tunnel's RTNL dependency.
> Introduce new udp_tunnel_nic_lock and use it instead of
> rtnl_lock. Drop non-UDP_TUNNEL_NIC_INFO_MAY_SLEEP mode from
> udp_tunnel infra (udp_tunnel_nic_device_sync_work needs to
> grab udp_tunnel_nic_lock mutex and might sleep).
There are multiple entry points to this code, basically each member of
struct udp_tunnel_nic_ops and the netdev notifiers. In this patch only
reset and work are locked. I'm a bit confused as to what is the new
lock protecting :S
Powered by blists - more mailing lists