iscsi_iser_conn_stop(9)
π iscsi_iser_conn_stop(9) β the Kernel API Manual moment
okay so bestie, welcome to the glow-up era of the kernel API manual for iscsi_iser_conn_stop(9) π this one's short but she matters, so like, pay attention fr fr.
β¨ NAME β¨
iscsi_iser_conn_stop β stop an iscsi-iser connection π
like, the connection gets told to wrap it up, that's the whole vibe.
πΈ SYNOPSIS πΈ
void iscsi_iser_conn_stop (struct iscsi_cls_conn *cls_conn , int flag );
that's it. that's the whole signature. no cap. π«Ά
π¦ ARGUMENTS π¦
cls_connβ an iscsi class connection π like, the connection object itself, the main character of this function.flagβ tells you whether this is a recover or a terminate π and here's the thing: it gets passed as is. no filtering, no judging, no little cleanup pass. it goes straight through. periodt.
π₯ NOTES π₯
okay this is the part where I need you to lock in π because there's a real caveat here.
Calling iscsi_conn_stop might theoretically race with a DEVICE_REMOVAL event and dereference a previously freed RDMA device handle π and that is exactly the kind of chaos we're not doing.
So: we call it under the iser state lock, and that's specifically to protect against this kind of race π the lock is the whole point, she's the bodyguard, don't skip her.
ngl the word "theoretically" is doing a lot of work here β but the fix is real and you should respect it. π§
π SEE ALSO π
kernel file ./drivers/infiniband/ulp/iser/iscsi_iser.c β go read it, it's the source of truth β
and the whole friend group π:
iscsi_iser_pdu_alloc(9)iser_initialize_task_headers(9)iscsi_iser_task_init(9)iscsi_iser_mtask_xmit(9)iscsi_iser_task_xmit(9)iscsi_iser_cleanup_task(9)iscsi_iser_check_protection(9)iscsi_iser_conn_create(9)iscsi_iser_conn_bind(9)iscsi_iser_conn_start(9)iscsi_iser_session_destroy(9)iscsi_iser_session_create(9)iscsi_iser_conn_get_stats(9)iscsi_iser_ep_connect(9)iscsi_iser_ep_poll(9)iscsi_iser_ep_disconnect(9)
and that's the page bestie π from ./drivers/infiniband/ulp/iser, dated October 2026 β slay, go stop some connections responsibly β¨π
π¦ where this page comes from
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms