RDMA/core: Annotate destroy of mutex to ensure that it is released as unlocked
authorParav Pandit <parav@mellanox.com>
Tue, 23 Jul 2019 06:57:24 +0000 (09:57 +0300)
committerJason Gunthorpe <jgg@mellanox.com>
Thu, 25 Jul 2019 15:07:14 +0000 (12:07 -0300)
commit56594ae1d250f839945cda89d0138eece46dd607
tree54f812559bc43ae22cdef3e4ae25aa7dd4df49ca
parenta511f82218fb14b3d6fbbce3c35759aa4920a734
RDMA/core: Annotate destroy of mutex to ensure that it is released as unlocked

While compiled with CONFIG_DEBUG_MUTEXES, the kernel ensures that mutex is
not held during destroy. Hence add mutex_destroy() for mutexes used in
RDMA modules.

Link: https://lore.kernel.org/r/20190723065733.4899-2-leon@kernel.org
Signed-off-by: Parav Pandit <parav@mellanox.com>
Signed-off-by: Leon Romanovsky <leonro@mellanox.com>
Reviewed-by: Jason Gunthorpe <jgg@mellanox.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
drivers/infiniband/core/cache.c
drivers/infiniband/core/cma_configfs.c
drivers/infiniband/core/counters.c
drivers/infiniband/core/device.c
drivers/infiniband/core/user_mad.c
drivers/infiniband/core/uverbs_main.c
drivers/infiniband/core/verbs.c