[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20250115095545.52709-1-kuniyu@amazon.com>
Date: Wed, 15 Jan 2025 18:55:42 +0900
From: Kuniyuki Iwashima <kuniyu@...zon.com>
To: "David S. Miller" <davem@...emloft.net>, Eric Dumazet
<edumazet@...gle.com>, Jakub Kicinski <kuba@...nel.org>, Paolo Abeni
<pabeni@...hat.com>, Simon Horman <horms@...nel.org>
CC: Kuniyuki Iwashima <kuniyu@...zon.com>, Kuniyuki Iwashima
<kuni1840@...il.com>, <netdev@...r.kernel.org>
Subject: [PATCH v1 net-next 0/3] dev: Covnert dev_change_name() to per-netns RTNL.
Patch 1 adds a missing netdev_rename_lock in dev_change_name()
and Patch 2 removes unnecessary devnet_rename_sem there.
Patch 3 replaces RTNL with rtnl_net_lock() in dev_ifsioc(),
and now dev_change_name() is always called under per-netns RTNL.
Given it's close to -rc8 and Patch 1 touches the trivial unlikely
path, can Patch 1 go into net-next ? Otherwise I'll post Patch 2 & 3
separately in the next cycle.
Kuniyuki Iwashima (3):
dev: Acquire netdev_rename_lock before restoring dev->name in
dev_change_name().
dev: Remove devnet_rename_sem.
dev: Hold rtnl_net_lock() for dev_ifsioc().
net/core/dev.c | 25 ++++++-------------------
net/core/dev_ioctl.c | 26 +++++++++++++++++---------
net/core/rtnl_net_debug.c | 15 +++------------
3 files changed, 26 insertions(+), 40 deletions(-)
--
2.39.5 (Apple Git-154)
Powered by blists - more mailing lists