All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH for-next 0/3] Change per-entry locks in GID cache to table lock
@ 2015-10-28 14:52 Matan Barak
       [not found] ` <1446043961-17667-1-git-send-email-matanb-VPRAkNaXOzVWk0Htik3J/w@public.gmane.org>
  0 siblings, 1 reply; 7+ messages in thread
From: Matan Barak @ 2015-10-28 14:52 UTC (permalink / raw)
  To: Doug Ledford
  Cc: linux-rdma-u79uwXL29TY76Z2rM5mHXA, Haggai Eran, Jason Gunthorpe,
	Eran Ben Elisha, Matan Barak

Hi Doug,

During the RoCE GID cache changes, we used a per-entry rwlock. This could cause
a major overhead when traversing the GID table. We could spend thousands of
cycles just by locking and unlocking entries. This change was requested by
Doug.

In order to solve that, we moved to one table lock. find_gid is also optimized
to find an empty slot while traversing the GID table (when needed).

Regards,
Matan

Matan Barak (3):
  IB/core: Refactor GID cache's ib_dispatch_event
  IB/core: Change per-entry lock in RoCE GID table to one lock
  IB/core: Find gid searches for empty slot while traversing the GID
    table

 drivers/infiniband/core/cache.c | 209 ++++++++++++++++++++++++++--------------
 1 file changed, 134 insertions(+), 75 deletions(-)

-- 
2.1.0

--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2015-12-30 10:59 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-10-28 14:52 [PATCH for-next 0/3] Change per-entry locks in GID cache to table lock Matan Barak
     [not found] ` <1446043961-17667-1-git-send-email-matanb-VPRAkNaXOzVWk0Htik3J/w@public.gmane.org>
2015-10-28 14:52   ` [PATCH for-next 1/3] IB/core: Refactor GID cache's ib_dispatch_event Matan Barak
2015-10-28 14:52   ` [PATCH for-next 2/3] IB/core: Change per-entry lock in RoCE GID table to one lock Matan Barak
     [not found]     ` <1446043961-17667-3-git-send-email-matanb-VPRAkNaXOzVWk0Htik3J/w@public.gmane.org>
2015-12-30  6:01       ` Or Gerlitz
     [not found]         ` <56837328.8000902-VPRAkNaXOzVWk0Htik3J/w@public.gmane.org>
2015-12-30  7:36           ` Bart Van Assche
     [not found]             ` <5683897C.8000604-XdAiOPVOjttBDgjK7y7TUQ@public.gmane.org>
2015-12-30 10:59               ` Matan Barak
2015-10-28 14:52   ` [PATCH for-next 3/3] IB/core: Find gid searches for empty slot while traversing the GID table Matan Barak

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.