RDMA/i40iw: Fix incorrect iterator type
authorHåkon Bugge <Haakon.Bugge@oracle.com>
Mon, 17 Sep 2018 14:07:07 +0000 (16:07 +0200)
committerJason Gunthorpe <jgg@mellanox.com>
Wed, 19 Sep 2018 16:08:20 +0000 (10:08 -0600)
commit802fa45cd320de319e86c93bca72abec028ba059
tree3e6a99c40546c30a3d5fedafdf3b6efb0b2f20fc
parent6ebce44746036c923d0c255672735399192467c3
RDMA/i40iw: Fix incorrect iterator type

Commit f27b4746f378 ("i40iw: add connection management code") uses an
incorrect rcu iterator, whilst holding the rtnl_lock. Since the
critical region invokes i40iw_manage_qhash(), which is a sleeping
function, the rcu locking and traversal cannot be used.

Signed-off-by: Håkon Bugge <haakon.bugge@oracle.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
drivers/infiniband/hw/i40iw/i40iw_cm.c