scsi_timeout(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

okay bestie, welcome to scsi_timeout(9) from the Kernel API Manual β€” this is the timeout function for normal scsi commands, and it's basically the β€œyour request is taking too long” page πŸ’…βœ¨

✨ NAME ✨

scsi_timeout β€” timeout function for normal scsi commands. That's the whole name section, and honestly it ate πŸŽ€

πŸŽ€ SYNOPSIS πŸŽ€

okay so the signature is literally right here, no cap:

enum blk_eh_timer_return scsi_timeout (struct request *req );

🫢 ARGUMENTS 🫢

  • req β€” the request that is timing out. This is the main character of the page, and it is not having a good time 😭

πŸ’… NOTES πŸ’…

okay so about locking: we do not need to lock this. The potential for a race is only in that the normal completion handling might run β€” but if the normal completion function determines that the timer has already fired, then it mustn't do anything. Like, nothing at all, bestie 🚫✨

🌈 SEE ALSO 🌈

The kernel file is ./drivers/scsi/scsi_error.c β€” that's home base. Then the whole iconic friend group is: scsi_schedule_eh(9), scmd_eh_abort_handler(9), scsi_abort_command(9), scsi_eh_reset(9), scsi_eh_scmd_add(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_target_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).


okay that's the page, bestie 🫢 β€” source/version is ./drivers/scsi, dated October 2026, and scsi_timeout(9) is signing off! πŸ’–πŸŽ€

πŸ“¦ where this page comes from