summaryrefslogtreecommitdiffstats
path: root/drivers/net/team
diff options
context:
space:
mode:
authorJiri Pirko <jpirko@redhat.com>2012-04-10 07:15:45 +0200
committerDavid S. Miller <davem@davemloft.net>2012-04-11 16:03:52 +0200
commit679b16073008cc536e85e2773e67234b596fb62e (patch)
tree6f28a44e8796e98a10ab37e90f62bb37c6b804ef /drivers/net/team
parentteam: add user_linkup and user_linkup_enabled per-port option (diff)
downloadlinux-679b16073008cc536e85e2773e67234b596fb62e.tar.xz
linux-679b16073008cc536e85e2773e67234b596fb62e.zip
team: ab: walk through port list non-rcu
Since team->lock is being held, _rcu variant make no sense. Signed-off-by: Jiri Pirko <jpirko@redhat.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/team')
-rw-r--r--drivers/net/team/team_mode_activebackup.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/team/team_mode_activebackup.c b/drivers/net/team/team_mode_activebackup.c
index 6cde1ab8fff0..a715c40e08c9 100644
--- a/drivers/net/team/team_mode_activebackup.c
+++ b/drivers/net/team/team_mode_activebackup.c
@@ -72,7 +72,7 @@ static int ab_active_port_set(struct team *team, struct team_gsetter_ctx *ctx)
{
struct team_port *port;
- list_for_each_entry_rcu(port, &team->port_list, list) {
+ list_for_each_entry(port, &team->port_list, list) {
if (port->dev->ifindex == ctx->data.u32_val) {
rcu_assign_pointer(ab_priv(team)->active_port, port);
return 0;