OSDN Git Service

IB/ipoib: Make sure no in-flight joins while leaving that mcast
authorErez Shitrit <erezsh@mellanox.com>
Wed, 12 Jul 2017 10:11:54 +0000 (13:11 +0300)
committerLeon Romanovsky <leon@kernel.org>
Sun, 23 Jul 2017 06:45:11 +0000 (09:45 +0300)
commita08e1120627f72e9ed7c291e3b9f8dd29c1513ab
treea9062a0fc6836e5df1f9495a41c60eaacafed1b3
parent6bdc8de2e86e717124a715ecc480892a2c331ff5
IB/ipoib: Make sure no in-flight joins while leaving that mcast

While cleaning neighs and there is a send-only mcast neigh, the driver
should wait to finish its join process before trying to remove it.

Without this patch, we will see messages like: "ipoib_mcast_leave on an
in-flight join" and unexpected results in the join_complete.

Signed-off-by: Erez Shitrit <erezsh@mellanox.com>
Signed-off-by: Leon Romanovsky <leon@kernel.org>
drivers/infiniband/ulp/ipoib/ipoib_multicast.c