]> git.baikalelectronics.ru Git - kernel.git/commit
RDMA/umem: Don't hold mmap_sem for too long
authorLeon Romanovsky <leonro@mellanox.com>
Tue, 10 Jul 2018 10:31:48 +0000 (13:31 +0300)
committerJason Gunthorpe <jgg@mellanox.com>
Fri, 13 Jul 2018 18:09:57 +0000 (12:09 -0600)
commit12143ca5ca3725e6ba12ea1c6359e87601e30263
treefa48e9042a67efda006a5da0266d40117740db46
parent2db8214a54a97fc791c31e4bebe549a0b1cb424c
RDMA/umem: Don't hold mmap_sem for too long

DMA mapping is time consuming operation and doesn't need to be performed
with mmap_sem semaphore is held.

The semaphore only needs to be held for accounting and get_user_pages
related activities.

Signed-off-by: Huy Nguyen <huyn@mellanox.com>
Signed-off-by: Leon Romanovsky <leonro@mellanox.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
drivers/infiniband/core/umem.c