RDMA/odp: Fix missed unlock in non-blocking invalidate_start
authorJason Gunthorpe <jgg@mellanox.com>
Tue, 11 Jun 2019 16:09:51 +0000 (13:09 -0300)
committerDoug Ledford <dledford@redhat.com>
Wed, 19 Jun 2019 02:44:35 +0000 (22:44 -0400)
commit7608bf40cf2480057ec0da31456cc428791c32ef
treefb89947cb888512e43706d406f40904eb93903ac
parent5a3113d19cb0ec06fd0d068a2f2860786a770e4f
RDMA/odp: Fix missed unlock in non-blocking invalidate_start

If invalidate_start returns with EAGAIN then the umem_rwsem needs to be
unlocked as no invalidate_end will be called.

Cc: <stable@vger.kernel.org>
Fixes: ca748c39ea3f ("RDMA/umem: Get rid of per_mm->notifier_count")
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
Reviewed-by: Leon Romanovsky <leonro@mellanox.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
drivers/infiniband/core/umem_odp.c