Re: [PATCH net-next v2 1/4] udp_tunnel: remove rtnl_lock dependency
From: Cosmin Ratiu
Date: Tue Jun 10 2025 - 10:57:45 EST
On Mon, 2025-06-09 at 09:25 -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).
>
> Cc: Michael Chan <michael.chan@xxxxxxxxxxxx>
> Suggested-by: Jakub Kicinski <kuba@xxxxxxxxxx>
> Signed-off-by: Stanislav Fomichev <stfomichev@xxxxxxxxx>
Reviewed-by: Cosmin Ratiu <cratiu@xxxxxxxxxx>