scsi_try_bus_device_reset(9)
π scsi_try_bus_device_reset(9) π
okay so bestie, welcome to the Kernel API Manual β yes this is a section 9 page, yes it's kernel-internal, yes we're still gonna make it cute π
β¨ NAME β¨
scsi_try_bus_device_reset β the "hey bestie, can u do a BDR on this dev for me?" ask π
Literally what it says on the tin: you're asking the host to perform a BDR on a dev. No cap.
πΈ SYNOPSIS πΈ
enum scsi_disposition scsi_try_bus_device_reset (struct scsi_cmnd *scmd
);
π¦ ARGUMENTS π¦
scmdβ the SCSI cmd you use to send the BDR π it's the main character here, don't lose it
π NOTES π
k so this is the important part, pay attention π«Ά
There is no timeout for this operation. Like, none. Zero. Nada. β
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 on the host, not on you, not on me, not on this function. it's giving "you had one job" energy but fr fr that's the deal π
no cap: no timeout means no timeout. if your host is flaky, the host handles the timer and the host restores its own consistent state before it returns. that's the contract, periodt.
π SEE ALSO π
Kernel file ./drivers/scsi/scsi_error.c β plus the whole friend group, in order, no skips:
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_target_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)
and that's the whole page, bestie π this one came straight out of ./drivers/scsi, dated October 2026, and it's brought to you by π scsi_try_bus_device_reset(9) π β go forth and reset 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