diff options
author | 2011-11-16 11:09:08 +0000 | |
---|---|---|
committer | 2011-11-16 18:16:37 -0500 | |
commit | 61dc3461b9549bc10a2f16d254250680cadafcce (patch) | |
tree | 9072edbb001647be7731ddb192355b59bdb82315 /include | |
parent | team: Do not hold rcu_read_lock when running netlink cmds (diff) | |
download | linux-61dc3461b9549bc10a2f16d254250680cadafcce.tar.gz linux-61dc3461b9549bc10a2f16d254250680cadafcce.tar.bz2 linux-61dc3461b9549bc10a2f16d254250680cadafcce.zip |
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 { 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 |