team: remove synchronize_rcu() called during queue override change
authorJiri Pirko <jiri@resnulli.us>
Mon, 10 Jun 2013 15:42:23 +0000 (17:42 +0200)
committerDavid S. Miller <davem@davemloft.net>
Wed, 12 Jun 2013 10:05:53 +0000 (03:05 -0700)
commit6c31ff366c1116823e77019bae3e92e9d77a49f4
tree5b296c8556264707bb6359c779270e6694c6e2a9
parentdffebd2c5cd528a136b276a2a75c56222312d7a4
team: remove synchronize_rcu() called during queue override change

This patch removes synchronize_rcu() from function
__team_queue_override_port_del(). That can be done because it is ok to
do list_del_rcu() and list_add_tail_rcu() on the same list_head member
without calling synchronize_rcu() in between. A bit of refactoring
needed to be done because INIT_LIST_HEAD needed to be removed (to not
kill the forward pointer) as well.

Signed-off-by: Jiri Pirko <jiri@resnulli.us>
Acked-by: Flavio Leitner <fbl@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/team/team.c