scsi_try_target_reset(9)
β¨ scsi_try_target_reset π
okay so bestie, welcome to the Kernel API Manual page for scsi_try_target_reset(9) β yes that's the whole title, we're not being shy about it π
πΈ NAME πΈ
scsi_try_target_reset β literally just politely asking the host to go ahead and perform a target reset π«Ά
β SYNOPSIS β
enum scsi_disposition scsi_try_target_reset (struct scsi_cmnd *scmd );
she takes one argument and hands you back an enum scsi_disposition, no cap β¨
π¦ ARGUMENTS π¦
scmdβ the SCSI cmd you're using to send a target reset. that's it, that's the whole job π
π NOTES π
bestie. listen. there is no timeout for this operation. like, none. zero. nada π
so if this operation is unreliable for a given host, then the host itself needs to put a timer on it, and set the host back to a consistent state prior to returning. that's the deal β the host's problem, the host's timer, the host's cleanup. no cap, fr fr π
π do not assume the kernel is gonna save you with a timeout here, because it is not gonna.
π SEE ALSO π
kernel file ./drivers/scsi/scsi_error.c plus this whole iconic little friend group:
scsi_schedule_eh(9)scmd_eh_abort_handler(9)scsi_abort_command(9)scsi_eh_reset(9)scsi_eh_scmd_add(9)scsi_timeout(9)scsi_block_when_processing_errors(9)scsi_eh_prt_fail_stats(9)scsi_report_sense(9)scsi_check_sense(9)scsi_eh_completed_normally(9)scsi_eh_done(9)scsi_try_host_reset(9)scsi_try_bus_reset(9)scsi_try_bus_device_reset(9)scsi_try_to_abort_cmd(9)scsi_eh_prep_cmnd(9)scsi_eh_restore_cmnd(9)scsi_send_eh_cmnd(9)scsi_request_sense(9)scsi_eh_finish_cmd(9)scsi_eh_get_sense(9)scsi_eh_tur(9)scsi_eh_test_devices(9)scsi_eh_try_stu(9)scsi_eh_bus_device_reset(9)scsi_eh_target_reset(9)scsi_eh_bus_reset(9)scsi_eh_host_reset(9)scsi_eh_offline_sdevs(9)scsi_noretry_cmd(9)scsi_decide_disposition(9)scsi_eh_lock_door(9)scsi_restart_operations(9)scsi_eh_ready_devs(9)scsi_eh_flush_done_q(9)scsi_unjam_host(9)scsi_error_handler(9)scsi_report_bus_reset(9)scsi_report_device_reset(9)scsi_ioctl_reset(9)scsi_get_sense_info_fld(9)
like that's the entire error-handling squad and you will be reading all of them, mwah π
and that's the page!! sourced from ./drivers/scsi, dated October 2026, living under the Kernel API Manual umbrella β luv u, go reset that target 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