OSDN Git Service

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)
commit40ddacf2dda952e0f33b40d850bf5f7403bdbe0f
treefa48e9042a67efda006a5da0266d40117740db46
parent6869e0004fe16184acd6488f0c637e0081a84a8a
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