summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorJiri Pirko <jpirko@redhat.com>2011-11-16 11:09:08 +0000
committerDavid S. Miller <davem@davemloft.net>2011-11-16 18:16:37 -0500
commit61dc3461b9549bc10a2f16d254250680cadafcce (patch)
tree9072edbb001647be7731ddb192355b59bdb82315 /include
parent8c0713a57482ebfadef197c856a38af3a55444c6 (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.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/if_team.h b/include/linux/if_team.h
index 14f6388f546..a6eac126a99 100644
--- a/include/linux/if_team.h
+++ b/include/linux/if_team.h
@@ -92,7 +92,7 @@ struct team {
struct net_device *dev; /* associated netdevice */
struct team_pcpu_stats __percpu *pcpu_stats;
- spinlock_t lock; /* used for overall locking, e.g. port lists write */
+ struct mutex lock; /* used for overall locking, e.g. port lists write */
/*
* port lists with port count