Skip to content
Commit c1d383b5 authored by Guy Shapiro's avatar Guy Shapiro Committed by Doug Ledford
Browse files

IB/core: dma map/unmap locking optimizations



Currently, while mapping or unmapping pages for ODP, the umem mutex is locked
and unlocked once for each page. Such lock/unlock operation take few tens to
hundreds of nsecs. This makes a significant impact when mapping or unmapping few
MBs of memory.

To avoid this, the mutex should be locked only once per operation, and not per
page.

Signed-off-by: default avatarGuy Shapiro <guysh@mellanox.com>
Acked-by: default avatarShachar Raindel <raindel@mellanox.com>
Reviewed-by: default avatarSagi Grimberg <sagig@mellanox.com>
Signed-off-by: default avatarDoug Ledford <dledford@redhat.com>
parent 5b6b8fe6
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment