Re: [PATCH] RDMA/siw: Fix tx thread initialization.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 





On 7/28/23 19:44, Bernard Metzler wrote:
Immediately removing the siw module after insertion may
crash in siw_stop_tx_thread(), if the according thread did
not yet had a chance to initialize its wait queue and
siw_stop_tx_thread() tries to wakeup that thread. Initializing
the threads state before spwaning it fixes it.

Reported-by: Guoqing Jiang <guoqing.jiang@xxxxxxxxx>
Signed-off-by: Bernard Metzler <bmt@xxxxxxxxxxxxxx>
---
  drivers/infiniband/sw/siw/siw.h       |  3 +-
  drivers/infiniband/sw/siw/siw_main.c  | 40 ++----------------------
  drivers/infiniband/sw/siw/siw_qp_tx.c | 44 +++++++++++++++++++++++----
  3 files changed, 43 insertions(+), 44 deletions(-)

It works for me.

Tested-by: Guoqing Jiang <guoqing.jiang@xxxxxxxxx>

Thanks,
Guoqing



[Index of Archives]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Photo]     [Yosemite News]     [Yosemite Photos]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux