diff options
author | Jiri Pirko <jpirko@redhat.com> | 2011-11-16 06:09:08 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2011-11-16 18:16:37 -0500 |
commit | 61dc3461b9549bc10a2f16d254250680cadafcce (patch) | |
tree | 9072edbb001647be7731ddb192355b59bdb82315 /include | |
parent | 8c0713a57482ebfadef197c856a38af3a55444c6 (diff) |
team: convert overall spinlock to mutex
No need to have spinlock for this purpose. So convert this to mutex and
avoid current schedule while atomic problems in netlink code.
Signed-off-by: Jiri Pirko <jpirko@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/if_team.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/if_team.h b/include/linux/if_team.h index 14f6388f5460..a6eac126a99a 100644 --- a/include/linux/if_team.h +++ b/include/linux/if_team.h | |||
@@ -92,7 +92,7 @@ struct team { | |||
92 | struct net_device *dev; /* associated netdevice */ | 92 | struct net_device *dev; /* associated netdevice */ |
93 | struct team_pcpu_stats __percpu *pcpu_stats; | 93 | struct team_pcpu_stats __percpu *pcpu_stats; |
94 | 94 | ||
95 | spinlock_t lock; /* used for overall locking, e.g. port lists write */ | 95 | struct mutex lock; /* used for overall locking, e.g. port lists write */ |
96 | 96 | ||
97 | /* | 97 | /* |
98 | * port lists with port count | 98 | * port lists with port count |