]> git.baikalelectronics.ru Git - kernel.git/commit
RDMA/iwcm: move iw_rem_ref() calls out of spinlock
authorKrishnamraju Eraparaju <krishna2@chelsio.com>
Mon, 7 Oct 2019 10:26:27 +0000 (15:56 +0530)
committerDoug Ledford <dledford@redhat.com>
Fri, 18 Oct 2019 18:40:01 +0000 (14:40 -0400)
commit54102dd410b037a4d7984e6a5826fb212c2f8aca
treece9f4e4761eb18aa99a49c9219dc5090850ff6cd
parent612e0486ad0845c41ac10492e78144f99e326375
RDMA/iwcm: move iw_rem_ref() calls out of spinlock

kref release routines usually perform memory release operations,
hence, they should not be called with spinlocks held.
one such case is: SIW kref release routine siw_free_qp(), which
can sleep via vfree() while freeing queue memory.

Hence, all iw_rem_ref() calls in IWCM are moved out of spinlocks.

Fixes: 922a8e9fb2e0 ("RDMA: iWARP Connection Manager.")
Signed-off-by: Krishnamraju Eraparaju <krishna2@chelsio.com>
Reviewed-by: Bernard Metzler <bmt@zurich.ibm.com>
Link: https://lore.kernel.org/r/20191007102627.12568-1-krishna2@chelsio.com
Signed-off-by: Doug Ledford <dledford@redhat.com>
drivers/infiniband/core/iwcm.c