RDMA/core: Annotate CMA unlock helper routine
PATCH 1/1 RDMA/core: Annotate CMA unlock helper routine
From: Leon Romanovsky <[email protected]>
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 e83f195aa45c ("RDMA/cm: Pull duplicated code into cm_queue_work_unlock()")
Reported-by kernel test robot <[email protected]>
Signed-off-by Leon Romanovsky <[email protected]>
--- drivers/infiniband/core/cm.c | 1 + 1 file changed, 1 insertion(+)
drivers/infiniband/core/cm.c +1 -0
@@ -918,6 +918,7 @@ static void cm_free_work(struct cm_work *work)static void cm_queue_work_unlock (struct cm_id_private *cm_id_priv,struct cm_work *work) + __releases(&cm_id_priv->lock) {bool immediate;
--
2.26.2
Jason Gunthorpe
AppliedQuoted 8 lines · Leon Romanovsky
From: Leon Romanovsky <[email protected]>
Fix the following sparse error by adding annotation
tocm_queue_work_unlock()that it releasescm_id_priv->locklock.
drivers/infiniband/core/cm.c:936:24: warning: context imbalance in 'cm_queue_work_unlock' - unexpected unlock
Quoted 6 lines
Fixes e83f195aa45c ("RDMA/cm: Pull duplicated code into cm_queue_work_unlock()")Reported-by kernel test robot <[email protected]>Signed-off-by Leon Romanovsky <[email protected]>--- drivers/infiniband/core/cm.c | 1 + 1 file changed, 1 insertion(+)
Applied to for-rc
Thanks,
Jason