Thread (6 messages) 6 messages, 3 authors, 4d ago

Re: [PATCH net-next v3 1/2] ipv4: use rcu_assign_pointer() in rt_flush_dev()

From: Ido Schimmel <idosch@nvidia.com>
Date: 2026-07-13 15:58:21
Also in: lkml

On Wed, Jul 08, 2026 at 02:05:36PM +0800, xuanqiang.luo@linux.dev wrote:
From: Xuanqiang Luo <redacted>

rt_flush_dev() replaces rt->dst.dev with blackhole_netdev on uncached
routes.  The field is also exposed as dst.dev_rcu, and existing readers
use dst_dev_rcu().

Use rcu_assign_pointer() for the replacement, as dst_dev_put() already
does for the same field.

Signed-off-by: Xuanqiang Luo <redacted>
Reviewed-by: Ido Schimmel <idosch@nvidia.com>
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help