]> 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)
commit958519ce5b36ab1d796ab3bbeed855dc37fc7958
treece9f4e4761eb18aa99a49c9219dc5090850ff6cd
parent154cdbbabfa6c278e1a6e63194fe25e66d7a06e6
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: a76bc45d391b ("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