]> git.baikalelectronics.ru Git - kernel.git/commit
IB/core: Don't pass the lock state to _rdma_remove_commit_uobject
authorMatan Barak <matanb@mellanox.com>
Tue, 18 Apr 2017 09:03:38 +0000 (12:03 +0300)
committerDoug Ledford <dledford@redhat.com>
Thu, 20 Apr 2017 15:44:07 +0000 (11:44 -0400)
commit05a49906453d1b2fe894bdd12ecfd34b620522ed
tree725113ffcd76a214ae1c39e94f56d430484f5382
parent465e888d35b1ab3311d7c05e5629e34af2efe51f
IB/core: Don't pass the lock state to _rdma_remove_commit_uobject

The only scenario where this function was called while the lock is
already taken is in the context cleanup scenario. Thus, in order not
to pass the lock state to this function, we just call the remove logic
straight from the cleanup context function.

Fixes: 3cd096538874 ('IB/core: Add support for idr types')
Signed-off-by: Matan Barak <matanb@mellanox.com>
Reviewed-by: Sean Hefty <sean.hefty@intel.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
drivers/infiniband/core/rdma_core.c