iscsi_block_scsi_eh(9)
π iscsi_block_scsi_eh β a page from the Kernel API Manual
okay so bestie, welcome to iscsi_block_scsi_eh(9), which is genuinely one of those tiny functions that carries a lot of weight. She's got exactly one job and she does it, periodt. Let's get into it π
β¨ NAME β¨
iscsi_block_scsi_eh β block scsi eh until session state has transistioned
(yes, that's the spelling in the original, and no, we are not fixing it β she's iconic as-is π )
πΈ SYNOPSIS πΈ
int iscsi_block_scsi_eh (struct scsi_cmnd *cmd );
π¦ ARGUMENTS π¦
cmdβ the scsi cmd that got passed to the scsi eh handler. that's it, that's the whole argument list, we love a low-maintenance queen π«Ά
π DESCRIPTION π
here's the vibe check: if the session is down, this function is gonna sit there and wait. wait for what, you ask? two possibilities, and she's not picky:
- the recovery timer fires, or
- the session gets logged back in π₯
and if the recovery timer is the thing that fires first, then FAST_IO_FAIL is what gets returned. lowkey important: the caller should pass this error value to the scsi eh. like, that's the whole point of handing it back, okay? don't just pocket it and walk away π
fr fr, FAST_IO_FAIL is the message β deliver it to the scsi eh handler like it's a group chat screenshot that NEEDS to be seen π
π SEE ALSO π
the kernel file we're living in: ./drivers/scsi/scsi_transport_iscsi.c
and the whole friend group, in the order they appear:
iscsi_lookup_endpoint(9)iscsi_create_flashnode_sess(9)iscsi_create_flashnode_conn(9)iscsi_is_flashnode_conn_dev(9)iscsi_get_flashnode_by_index(9)iscsi_find_flashnode_sess(9)iscsi_find_flashnode_conn(9)iscsi_destroy_flashnode_sess(9)iscsi_destroy_all_flashnode(9)iscsi_bsg_host_dispatch(9)iscsi_bsg_host_add(9)iscsi_unblock_session(9)iscsi_force_destroy_session(9)iscsi_alloc_conn(9)iscsi_add_conn(9)iscsi_remove_conn(9)iscsi_session_event(9)
and that's the page!! π§ this gorgeous little number lives over in ./drivers/scsi, dated October 2026, and it answers to the name iscsi_block_scsi_eh(9) β go say hi, she's been waiting for you bestie πβ¨π
π¦ 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