28 lines
1.0 KiB
Diff
28 lines
1.0 KiB
Diff
From: Jiri Pirko <jpirko@redhat.com>
|
|
Date: Tue, 10 Apr 2012 05:15:45 +0000
|
|
Subject: [19/23] team: ab: walk through port list non-rcu
|
|
|
|
commit 679b16073008cc536e85e2773e67234b596fb62e upstream.
|
|
|
|
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>
|
|
---
|
|
drivers/net/team/team_mode_activebackup.c | 2 +-
|
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
|
diff --git a/drivers/net/team/team_mode_activebackup.c b/drivers/net/team/team_mode_activebackup.c
|
|
index 6cde1ab..a715c40 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;
|