]> git.baikalelectronics.ru Git - kernel.git/commit
IB/umem: Release pid in error and ODP flow
authorKenneth Lee <liguozhu@hisilicon.com>
Thu, 5 Jan 2017 07:00:05 +0000 (15:00 +0800)
committerDoug Ledford <dledford@redhat.com>
Tue, 24 Jan 2017 20:44:31 +0000 (15:44 -0500)
commit4d47b622cc599b79e411252b8f34a8dd0b04bcfc
tree09256b2ef0bbc46a1fbe79c5e0eaef8cd874dac9
parente918e1dd199f9542bad228c444dbfe158331fd80
IB/umem: Release pid in error and ODP flow

1. Release pid before enter odp flow
2. Release pid when fail to allocate memory

Fixes: a88cb8d3789f ("IB: ib_umem_release() should decrement mm->pinned_vm from ib_umem_get")
Fixes: 4182cb885f82 ("IB/core: Add support for on demand paging regions")
Signed-off-by: Kenneth Lee <liguozhu@hisilicon.com>
Reviewed-by: Haggai Eran <haggaie@mellanox.com>
Reviewed-by: Leon Romanovsky <leon@kernel.org>
Signed-off-by: Doug Ledford <dledford@redhat.com>
drivers/infiniband/core/umem.c