linux-hardened/drivers/infiniband
Parav Pandit 33f93e1ebc IB/cm: Fix sleeping while spin lock is held
In case of LAP are used for RoCE, it can lead to a problem of sleeping a
context while spin lock is held in below flow.

cm_lap_handler
	->spin_lock
	-> <..switch_case..>
	-> cm_init_av_for_response
		-> ib_init_ah_from_wc
			-> rdma_addr_find_l2_eth_by_grh
				wait_for_completion()

Therefore ah attribute initialization is done for incoming lap requests
outside of the lock context.

Signed-off-by: Parav Pandit <parav@mellanox.com>
Reviewed-by: Daniel Jurgens <danielj@mellanox.com>
Signed-off-by: Leon Romanovsky <leon@kernel.org>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
2017-12-18 15:37:11 -07:00
..
core IB/cm: Fix sleeping while spin lock is held 2017-12-18 15:37:11 -07:00
hw IB/mlx4: Remove unused ibpd parameter 2017-12-18 13:49:43 -07:00
sw IB/rxe: Avoid passing unused index pointer which is optional 2017-12-18 15:37:08 -07:00
ulp IB/{core, ipoib}: Simplify ib_find_gid to search only for IB link layer 2017-12-18 15:37:10 -07:00
Kconfig infiniband: add MMU dependency for user_mem 2017-10-10 10:49:44 -04:00
Makefile IB/rdmavt: Create module framework and handle driver registration 2016-03-10 20:37:04 -05:00