]> git.baikalelectronics.ru Git - kernel.git/commit
IB/mlx5: Resolve soft lock on massive reg MRs
authorMoshe Lazer <moshel@mellanox.com>
Thu, 27 Oct 2016 13:36:42 +0000 (16:36 +0300)
committerDoug Ledford <dledford@redhat.com>
Thu, 17 Nov 2016 01:03:44 +0000 (20:03 -0500)
commita934b1b764acb98d16d9ab8a58902d045f05b8e0
tree6e76546703284ab7d3e1a25c389b31511ff930f8
parent6ffcc0f7f5af3e9f50bd019a820936bbfcb5d489
IB/mlx5: Resolve soft lock on massive reg MRs

When calling reg_mr of large MRs (e.g. 4GB) from multiple processes
and MR caches can't supply the required amount of MRs the slow-path
of MR allocation may be used. In this case we need to serialize the
slow-path between the processes to avoid soft lock.

Fixes: 7c120481afcc ('mlx5: Add driver for Mellanox Connect-IB adapters')
Signed-off-by: Moshe Lazer <moshel@mellanox.com>
Signed-off-by: Maor Gottlieb <maorg@mellanox.com>
Reviewed-by: Eli Cohen <eli@mellanox.com>
Signed-off-by: Leon Romanovsky <leon@kernel.org>
Signed-off-by: Doug Ledford <dledford@redhat.com>
drivers/infiniband/hw/mlx5/mlx5_ib.h
drivers/infiniband/hw/mlx5/mr.c