Re: [PATCH v2] IB/isert: wait for deferred control PDU completions before releasing the connection

From: Leon Romanovsky

Date: Wed Sep 02 2026 - 09:19:42 EST



On Fri, 21 Aug 2026 17:06:20 +0900, Yehyeong Lee wrote:
> isert_send_done() hands ISTATE_SEND_TASKMGTRSP, ISTATE_SEND_REJECT and
> ISTATE_SEND_TEXTRSP completions off to isert_comp_wq and returns. The work
> item then runs isert_completion_put() -> isert_put_cmd(), which reads
> isert_conn->conn and takes conn->cmd_lock.
>
> Nothing orders that work item against teardown. isert_wait_conn() queues
> isert_release_work, which frees isert_conn, and iscsit_close_connection()
> frees the iscsit_conn right after it returns, so the queued work can run
> against freed memory.
>
> [...]

Applied, thanks!

[1/1] IB/isert: wait for deferred control PDU completions before releasing the connection
https://git.kernel.org/rdma/rdma/c/a8fe3dfce8c0d8

Best regards,
--
Leon Romanovsky <leon@xxxxxxxxxx>