]> asedeno.scripts.mit.edu Git - linux.git/commit
RDMA/restrack: Reduce scope of synchronization lock while updating DB
authorLeon Romanovsky <leonro@mellanox.com>
Mon, 18 Feb 2019 20:25:46 +0000 (22:25 +0200)
committerJason Gunthorpe <jgg@mellanox.com>
Tue, 19 Feb 2019 04:04:36 +0000 (21:04 -0700)
commit48118527186fb255461ebf3685ab0f1c2680bd9c
tree6793d308f9dc6a61c7e60abed914420cecbfc007
parentc5dfe0ea6ffa1c568b311c60266484a3316bb085
RDMA/restrack: Reduce scope of synchronization lock while updating DB

XArray uses internal lock for updates to XArray. This means that our
external RW lock is needed to ensure that entry is not deleted while we
are performing iteration over list.

Signed-off-by: Leon Romanovsky <leonro@mellanox.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
drivers/infiniband/core/restrack.c
include/rdma/restrack.h