fc_block_scsi_eh(9)
β¨ fc_block_scsi_eh(9) β¨
okay bestie, welcome to the Kernel API Manual β today's main character is fc_block_scsi_eh, and honestly? she's the friend who holds the door so nobody gets left behind πͺπ
πΈ NAME πΈ
fc_block_scsi_eh β blocks the SCSI eh thread for a blocked fc_rport, no cap π«Ά
π SYNOPSIS π
int fc_block_scsi_eh (struct scsi_cmnd *cmnd );
π¦ ARGUMENTS π¦
cmndβ the SCSI command thatscsi_ehis trying to recover. that's the one, that's the patient π©Ίβ¨
π DESCRIPTION π
so here's the vibe: this routine can be called from a FC LLD scsi_eh callback. what it does is it blocks the scsi_eh thread until the fc_rport leaves FC_PORTSTATE_BLOCKED, or until the fast_io_fail_tmo fires β whichever comes first β³π₯
and why do we even need this? because otherwise scsi_eh would be out here failing recovery actions for blocked rports, which β and this is the important bit β would lead to offlined SCSI devices π so yeah, this little block is lowkey doing the lord's work. no cap.
β RETURN β
0β thefc_rportleft the stateFC_PORTSTATE_BLOCKEDπ slay, we're so back.FAST_IO_FAILβfast_io_fail_tmofired. this one should be passed back toscsi_eh, so don't just pocket it, bestie π
π SEE ALSO π
Kernel file ./drivers/scsi/scsi_transport_fc.c
fc_get_event_number(9)fc_host_post_fc_event(9)fc_host_post_event(9)fc_host_post_vendor_event(9)fc_find_rport_by_wwpn(9)fc_host_fpin_rcv(9)fc_eh_timed_out(9)fc_queue_work(9)fc_flush_work(9)fc_queue_devloss_work(9)fc_flush_devloss(9)fc_remove_host(9)fc_starget_delete(9)fc_rport_final_delete(9)fc_remote_port_create(9)fc_remote_port_add(9)fc_remote_port_delete(9)fc_remote_port_rolechg(9)fc_timeout_deleted_rport(9)fc_timeout_fail_rport_io(9)fc_scsi_scan_rport(9)fc_block_rport(9)fc_vport_setup(9)fc_vport_create(9)fc_vport_terminate(9)fc_vport_sched_delete(9)fc_bsg_job_timeout(9)fc_bsg_host_dispatch(9)fc_bsg_rport_dispatch(9)fc_bsg_hostadd(9)fc_bsg_rportadd(9)fc_bsg_remove(9)
that's the whole roster, bestie β every single one of them, i counted, we don't skip entries in this house π
okay that's the page!! this lil icon lives in ./drivers/scsi and the version tag says October 2026 β so like, very much future-proofed aesthetic πβ¨ go forth and block those eh threads responsibly, mwah π
π¦ 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