[Devel] [PATCH vz10-latest 1/1] openvswitch: fix soft lockup in the netlink dump callbacks #VSTOR-144650

Konstantin Khorenko khorenko at virtuozzo.com
Tue Sep 15 23:42:04 MSK 2026


On Tue, 15 Sep 2026 13:48:49 +0200, Denis V. Lunev <den at openvz.org> wrote:
> A production compute node carrying a few thousand datapath flows and
> ports hit a soft lockup inside a single netlink flow dump and panicked.
> 
> ovs_flow_cmd_dump() calls ovs_flow_stats_get() for every flow it
> emits, and that releases stats->lock with spin_unlock_bh() once per
> CPU that has touched the flow. ovs_vport_cmd_dump() calls
> peernet2id_alloc() for every vport that lives in a foreign netns, and
> that releases nsid_lock with spin_unlock_bh(). Every release is a
> local_bh_enable(), and each one runs the pending softirq backlog in
> the dumping thread's own context.
> 
> [...]

Reviewed-by: Konstantin Khorenko <khorenko at virtuozzo.com>

-- 
Konstantin Khorenko <khorenko at virtuozzo.com>


More information about the Devel mailing list