IB/core: Change per-entry lock in RoCE GID table to one lock
authorMatan Barak <matanb@mellanox.com>
Wed, 28 Oct 2015 14:52:40 +0000 (16:52 +0200)
committerDoug Ledford <dledford@redhat.com>
Wed, 23 Dec 2015 15:19:54 +0000 (10:19 -0500)
commit9c584f04959620e587b3b3d358076dab48a8893c
tree8886d5acd75e2d01668b71aee9761da4cad23cfb
parentf3906bd36087dd3440ecaf6e044690374d01f927
IB/core: Change per-entry lock in RoCE GID table to one lock

Previously, IB GID cached used a lock per entry. This could result
in spending a lot of CPU cycles for locking and unlocking just
in order to find a GID. Changing this in favor of one lock per
a GID table.

Signed-off-by: Matan Barak <matanb@mellanox.com>
Reviewed-by: Haggai Eran <haggaie@mellanox.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
drivers/infiniband/core/cache.c