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)
commitf025c48958104868a9fceb04696cdfdb056794c9
tree725113ffcd76a214ae1c39e94f56d430484f5382
parent30004b861afd99aebf34237373cb8ee9e890418e
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: 3832125624b7 ('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