RDMA/nes: Lock down connected_nodes list while processing it
authorFaisal Latif <faisal.latif@intel.com>
Sat, 22 Nov 2008 02:50:41 +0000 (20:50 -0600)
committerRoland Dreier <rolandd@cisco.com>
Fri, 5 Dec 2008 19:00:02 +0000 (11:00 -0800)
commit879e5bd5a1a0a317fb67fa4dc550db092a7bdcb0
tree220e3f3d077f123032d13253aa6cc8570b549917
parentc5d321e5c924384cf5b35f6288d69e9237490565
RDMA/nes: Lock down connected_nodes list while processing it

While processing connected_nodes list, we would release the lock when
we need to send reset to remote partner.  That created a window where
the list can be modified.  Change this into a two step process: place
nodes that need processing on a local list then process the local list.

Signed-off-by: Faisal Latif <faisal.latif@intel.com>
Signed-off-by: Chien Tung <chien.tin.tung@intel.com>
Signed-off-by: Roland Dreier <rolandd@cisco.com>
drivers/infiniband/hw/nes/nes_cm.c
drivers/infiniband/hw/nes/nes_cm.h