]> git.baikalelectronics.ru Git - kernel.git/commit
RDMA/core: Annotate CMA unlock helper routine
authorLeon Romanovsky <leonro@mellanox.com>
Thu, 11 Jun 2020 13:00:45 +0000 (16:00 +0300)
committerJason Gunthorpe <jgg@mellanox.com>
Thu, 18 Jun 2020 12:34:42 +0000 (09:34 -0300)
commitb077027544208eba43c99178211960e88ea51bd7
tree46d0e226b0c8ac3e8ad3cd1d3e0d8d63e968e4bd
parent3bc96569907f8ee2e36eaed11ba299537679e4de
RDMA/core: Annotate CMA unlock helper routine

Fix the following sparse error by adding annotation to
cm_queue_work_unlock() that it releases cm_id_priv->lock lock.

 drivers/infiniband/core/cm.c:936:24: warning: context imbalance in
 'cm_queue_work_unlock' - unexpected unlock

Fixes: fe257caff177 ("RDMA/cm: Pull duplicated code into cm_queue_work_unlock()")
Link: https://lore.kernel.org/r/20200611130045.1994026-1-leon@kernel.org
Reported-by: kernel test robot <lkp@intel.com>
Signed-off-by: Leon Romanovsky <leonro@mellanox.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
drivers/infiniband/core/cm.c